nano

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

commit ec9a11c76136f8968040e9d63f81f773826f46d6
parent 1c63bf0e38a711dffe70bad4c04a2fc8388d5f06
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 23 Nov 2019 20:22:31 +0100

display: do refresh the edit window when exiting from the help viewer

There are several cases (searching, replacing, spell checking, ...)
where exiting from the help viewer does NOT return the user to the
editing of the buffer.

This fixes https://savannah.gnu.org/bugs/?57295.

Bug existed since version 4.3, commit 5817e83e.

Diffstat:
Msrc/help.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/help.c b/src/help.c @@ -246,7 +246,6 @@ void do_help(void) inhelp = FALSE; curs_set(0); - refresh_needed = TRUE; if (ISSET(NO_HELP)) { currmenu = oldmenu; @@ -261,7 +260,10 @@ void do_help(void) browser_refresh(); else #endif + { titlebar(NULL); + edit_refresh(); + } } /* Allocate space for the help text for the current menu, and concatenate