nano

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

commit 956a1c23273e1f16f19a6794b390e1645eb9600b
parent 4f15890105defdcd8f7b875712c85e61febafa47
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 17 Nov 2021 16:57:50 +0100

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.)

Diffstat:
Msrc/help.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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();