From cc2d37053c46540f6ed8590b6f3f2a3c64af855c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 6 Feb 2016 11:05:58 +0000 Subject: [PATCH] Updating the screen immediately when a message is posted on the status bar. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5609 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/nano.c | 1 - src/text.c | 3 --- src/winio.c | 3 +++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e03aac09..9056ad6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2016-02-06 Benno Schulenberg * src/files.c (write_file): Remove the --nofollow option that hasn't been working for a dozen years. + * src/winio.c (statusbar): Update the screen immediately whenever a + message has been posted on the status bar. 2016-02-05 Benno Schulenberg * doc/texinfo/nano.texi: Condense the descriptions of command-key diff --git a/src/nano.c b/src/nano.c index 573e18c8..2cbf7051 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1106,7 +1106,6 @@ void no_current_file_name_warning(void) beep(); /* Ensure that we see the warning. */ - doupdate(); napms(1800); curs_set(1); diff --git a/src/text.c b/src/text.c index c9c8cdec..9dacb9dd 100644 --- a/src/text.c +++ b/src/text.c @@ -2874,7 +2874,6 @@ void do_spell(void) blank_bottombars(); statusbar(_("Invoking spell checker, please wait")); - doupdate(); spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) : do_int_speller(temp); @@ -2946,7 +2945,6 @@ void do_linter(void) blank_bottombars(); statusbar(_("Invoking linter, please wait")); - doupdate(); /* Set up an argument list to pass to execvp(). */ if (lintargs == NULL) { @@ -3253,7 +3251,6 @@ void do_formatter(void) blank_bottombars(); statusbar(_("Invoking formatter, please wait")); - doupdate(); endwin(); diff --git a/src/winio.c b/src/winio.c index 51a9ee0a..016c5776 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2149,6 +2149,9 @@ void statusbar(const char *msg, ...) disable_cursorpos = TRUE; + /* Push the message to the screen straightaway. */ + doupdate(); + /* If we're doing quick statusbar blanking, and constant cursor * position display is off, blank the statusbar after only one * keystroke. Otherwise, blank it after twenty-six keystrokes, as