From 839d29be3f18d8828d7fb453bc66282ad8edf534 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 22 Nov 2021 11:00:11 +0100 Subject: [PATCH] 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. --- src/winio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winio.c b/src/winio.c index a2649904..ef43b6f0 100644 --- 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;