From 3dfd798d51cb1321b962d618123cc54c65b16097 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 17 Nov 2021 11:36:03 +0100 Subject: [PATCH] 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. --- src/help.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/help.c b/src/help.c index a34501d7..387bcb40 100644 --- 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 {