nano

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

commit 0941185fcf747198ebb97c32503c417815fc8e96
parent 88500158223af7262f33346e545ff55544a514ec
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 23 Nov 2021 10:16:54 +0100

tweaks: on one-row terminals, suppress the message for two toggles

Their effect is feedback enough.

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

diff --git a/src/nano.c b/src/nano.c @@ -1130,7 +1130,7 @@ void toggle_this(int flag) } if (flag == NO_HELP || flag == LINE_NUMBERS || flag == WHITESPACE_DISPLAY) - if (ISSET(MINIBAR) || ISSET(ZERO)) + if (ISSET(MINIBAR) || ISSET(ZERO) || LINES == 1) return; if (flag == NO_HELP || flag == NO_SYNTAX)