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
parent
b2f0721b69
commit
839d29be3f
|
@ -193,7 +193,7 @@ void read_keys_from(WINDOW *win)
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || LINES == 1) &&
|
if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || ISSET(ZERO) || LINES == 1) &&
|
||||||
lastmessage > HUSH &&
|
lastmessage > HUSH &&
|
||||||
lastmessage != INFO && lastmessage < ALERT))) {
|
lastmessage != INFO && lastmessage < ALERT))) {
|
||||||
timed = TRUE;
|
timed = TRUE;
|
||||||
|
@ -217,7 +217,7 @@ void read_keys_from(WINDOW *win)
|
||||||
raw();
|
raw();
|
||||||
|
|
||||||
if (input == ERR) {
|
if (input == ERR) {
|
||||||
if (spotlighted || LINES == 1) {
|
if (spotlighted || ISSET(ZERO) || LINES == 1) {
|
||||||
if (ISSET(ZERO) && lastmessage > VACUUM)
|
if (ISSET(ZERO) && lastmessage > VACUUM)
|
||||||
wredrawln(edit, editwinrows - 1 , 1);
|
wredrawln(edit, editwinrows - 1 , 1);
|
||||||
lastmessage = VACUUM;
|
lastmessage = VACUUM;
|
||||||
|
|
Loading…
Reference in New Issue