nano

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

commit 839d29be3f18d8828d7fb453bc66282ad8edf534
parent b2f0721b6992c732934c2c5063165e412812a96f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 22 Nov 2021 11:00:11 +0100

feedback: with --zero, drop a message in a short while, as with --minibar

Only requested information (^C, M-D) and alerts stay onscreen until the
next keystroke, but less important messages are overwritten after 1.5
seconds (or 0.8 seconds with --quick).  This makes the behavior more
consistent with dropping a message when there is a spotlighted match.

Diffstat:
Msrc/winio.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -193,7 +193,7 @@ void read_keys_from(WINDOW *win) curs_set(1); #ifndef NANO_TINY - if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || LINES == 1) && + if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || ISSET(ZERO) || LINES == 1) && lastmessage > HUSH && lastmessage != INFO && lastmessage < ALERT))) { timed = TRUE; @@ -217,7 +217,7 @@ void read_keys_from(WINDOW *win) raw(); if (input == ERR) { - if (spotlighted || LINES == 1) { + if (spotlighted || ISSET(ZERO) || LINES == 1) { if (ISSET(ZERO) && lastmessage > VACUUM) wredrawln(edit, editwinrows - 1 , 1); lastmessage = VACUUM;