nano

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

commit 12bf3bfce479e94af1860b298bdb79d0d7cf2c87
parent d7555d071f92a765ea4023f25b14868f8ae64d4f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 21 May 2019 19:08:14 +0200

feedback: don't clear off possible error messages after a spell check

If functions deeper down would put up some message on the status bar,
it should not be cleared.  The chance that messages from a spell-check
program stay onscreen is minute: the edit window is fully refreshed,
the status bar is fully drawn, and the help lines (if there are any)
are redrawn.  Only the title bar is not refreshed, but the chance that
an error message has spilled onto the top row...  And anyway, the
spell checker should not print any error messages at all.

Diffstat:
Msrc/text.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2677,9 +2677,8 @@ void do_spell(void) /* Restore the settings of the global flags. */ memcpy(flags, stash, sizeof(flags)); - /* If the spell-checker printed any error messages onscreen, make - * sure that they're cleared off. */ - total_refresh(); + /* Ensure the help lines will be redrawn. */ + currmenu = MMOST; if (result_msg != NULL) { if (errno == 0)