nano

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

commit 8762e046310dce39b18ec62a79e2d6fde6e536e1
parent 256a0d670ef59ce1d11988375a93f8ac5228f8bf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 29 Oct 2021 10:21:09 +0200

replacing: keep the spotlighting, also after toggling the help lines

The spotlighting should only be dropped when in the main menu, like in
the code thirty lines up, where 'timed' became TRUE only for MMAIN.

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

Bug existed since version 5.8, commit 3f340836.

Diffstat:
Msrc/winio.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -250,8 +250,10 @@ void read_keys_from(WINDOW *win) #ifndef NANO_TINY /* Cancel the highlighting of a search match, if there still is one. */ - refresh_needed |= spotlighted; - spotlighted = FALSE; + if (currmenu == MMAIN) { + refresh_needed |= spotlighted; + spotlighted = FALSE; + } /* If we got a SIGWINCH, get out as the win argument is no longer valid. */ if (input == KEY_WINCH)