nano

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

commit 3dfd798d51cb1321b962d618123cc54c65b16097
parent 1235a5a365bdaf3188f5279d7d60c10f44fd0dd2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 17 Nov 2021 11:36:03 +0100

feedback: to have a status bar, suppress --zero while in the help viewer

This partially fixes https://savannah.gnu.org/bugs/?61497.

(It is not fixed for when the terminal has less than five rows.)

Bug existed since commit 03637030 from last week.

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

diff --git a/src/help.c b/src/help.c @@ -411,8 +411,9 @@ void show_help(void) memcpy(stash, flags, sizeof(flags)); /* Ensure that the help screen's shortcut list can be displayed. */ - if (ISSET(NO_HELP) && LINES > 4) { + if ((ISSET(NO_HELP) || ISSET(ZERO)) && LINES > 4) { UNSET(NO_HELP); + UNSET(ZERO); window_init(); } else blank_statusbar(); @@ -549,7 +550,7 @@ void show_help(void) curs_set(0); - if (ISSET(NO_HELP)) { + if (ISSET(NO_HELP) || ISSET(ZERO)) { currmenu = oldmenu; window_init(); } else {