mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-28 03:55:39 +03:00
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.
This commit is contained in:
parent
b2f0721b69
commit
839d29be3f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user