From 956a1c23273e1f16f19a6794b390e1645eb9600b Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 17 Nov 2021 16:57:50 +0100 Subject: [PATCH] help: remove an unneeded restriction for small terminals There is no need to prevent NO_HELP from being unset on terminals with fewer than five rows, because the bottombars() routine already automatically suppresses the help lines on such terminals. This improves the fix for https://savannah.gnu.org/bugs/?61497. (The problem with absent feedback is still there when the terminal has just one row.) --- src/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index f63e415d..3c54f0bb 100644 --- a/src/help.c +++ b/src/help.c @@ -411,7 +411,7 @@ void show_help(void) memcpy(stash, flags, sizeof(flags)); /* Ensure that the help screen's shortcut list can be displayed. */ - if ((ISSET(NO_HELP) || ISSET(ZERO)) && LINES > 4) { + if (ISSET(NO_HELP) || ISSET(ZERO)) { UNSET(NO_HELP); UNSET(ZERO); window_init();