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
master
Benno Schulenberg 2016-02-06 11:05:58 +00:00
parent 6829241433
commit cc2d37053c
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,8 @@
2016-02-06 Benno Schulenberg <bensberg@justemail.net> 2016-02-06 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (write_file): Remove the --nofollow option that hasn't * src/files.c (write_file): Remove the --nofollow option that hasn't
been working for a dozen years. 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> 2016-02-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Condense the descriptions of command-key * doc/texinfo/nano.texi: Condense the descriptions of command-key

View File

@ -1106,7 +1106,6 @@ void no_current_file_name_warning(void)
beep(); beep();
/* Ensure that we see the warning. */ /* Ensure that we see the warning. */
doupdate();
napms(1800); napms(1800);
curs_set(1); curs_set(1);

View File

@ -2874,7 +2874,6 @@ void do_spell(void)
blank_bottombars(); blank_bottombars();
statusbar(_("Invoking spell checker, please wait")); statusbar(_("Invoking spell checker, please wait"));
doupdate();
spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) : spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) :
do_int_speller(temp); do_int_speller(temp);
@ -2946,7 +2945,6 @@ void do_linter(void)
blank_bottombars(); blank_bottombars();
statusbar(_("Invoking linter, please wait")); statusbar(_("Invoking linter, please wait"));
doupdate();
/* Set up an argument list to pass to execvp(). */ /* Set up an argument list to pass to execvp(). */
if (lintargs == NULL) { if (lintargs == NULL) {
@ -3253,7 +3251,6 @@ void do_formatter(void)
blank_bottombars(); blank_bottombars();
statusbar(_("Invoking formatter, please wait")); statusbar(_("Invoking formatter, please wait"));
doupdate();
endwin(); endwin();

View File

@ -2149,6 +2149,9 @@ void statusbar(const char *msg, ...)
disable_cursorpos = TRUE; disable_cursorpos = TRUE;
/* Push the message to the screen straightaway. */
doupdate();
/* If we're doing quick statusbar blanking, and constant cursor /* If we're doing quick statusbar blanking, and constant cursor
* position display is off, blank the statusbar after only one * position display is off, blank the statusbar after only one
* keystroke. Otherwise, blank it after twenty-six keystrokes, as * keystroke. Otherwise, blank it after twenty-six keystrokes, as