[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] startup: suggest using ^D to finish reading fro

From: Liu Hao
Subject: Re: [Nano-devel] [PATCH] startup: suggest using ^D to finish reading from standard input
Date: Sun, 29 Apr 2018 16:26:49 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

在 2018/4/28 23:57, Benno Schulenberg 写道:
Also, add a period after the "Read nn lines" message,
and don't let the next prompt overwrite this message.

This addresses
  src/nano.c  | 3 ++-
  src/winio.c | 1 +
  2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c
index 7e338757..a285b10a 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2159,6 +2159,7 @@ void statusline(message_type importance, const char *msg, 
        /* Curses mode is turned off.  If we use wmove() now, it will muck
         * up the terminal settings.  So we just use vfprintf(). */
        if (isendwin()) {
+               vfprintf(stderr, "\n", ap);

Isn't this `ap` argument redundant?

                vfprintf(stderr, msg, ap);

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]