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.
master
Benno Schulenberg 2021-11-22 11:00:11 +01:00
parent b2f0721b69
commit 839d29be3f
1 changed files with 2 additions and 2 deletions

View File

@ -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;