nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit cc2d37053c46540f6ed8590b6f3f2a3c64af855c
parent 68292414330b1078a7e779193413c4c2c9833a6c
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat,  6 Feb 2016 11:05:58 +0000

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

Diffstat:
MChangeLog | 2++
Msrc/nano.c | 1-
Msrc/text.c | 3---
Msrc/winio.c | 3+++
4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,6 +1,8 @@ 2016-02-06 Benno Schulenberg <bensberg@justemail.net> * 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 <bensberg@justemail.net> * doc/texinfo/nano.texi: Condense the descriptions of command-key diff --git 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 @@ -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 @@ -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