mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
feedback: suppress chatty messages when --zero is active
Things like "Cancelled" and "Undid addition" are not needed. They
are nice for discovery, but become distracting once you know nano.
This fixes https://savannah.gnu.org/bugs/?61508.
Bug existed since commit 03637030
from last week.
This commit is contained in:
parent
8aea8625be
commit
51a5f33b5b
@ -2553,7 +2553,8 @@ int main(int argc, char **argv)
|
||||
else
|
||||
place_the_cursor();
|
||||
|
||||
/* When there are no bars, redraw a relevant status message. */
|
||||
/* In barless mode, either redraw a relevant status message,
|
||||
* or overwrite a minor, redundant one. */
|
||||
if (ISSET(ZERO) && lastmessage > HUSH) {
|
||||
if (openfile->current_y == editwinrows - 1 && LINES > 1) {
|
||||
edit_scroll(FORWARD);
|
||||
@ -2561,7 +2562,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
redrawwin(bottomwin);
|
||||
wnoutrefresh(bottomwin);
|
||||
}
|
||||
} else if (ISSET(ZERO) && lastmessage > VACUUM)
|
||||
wredrawln(edit, editwinrows - 1, 1);
|
||||
|
||||
place_the_cursor();
|
||||
wnoutrefresh(edit);
|
||||
|
Loading…
Reference in New Issue
Block a user