mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
feedback: suppress undo/redo messages when option --zero is in effect
This fixes https://savannah.gnu.org/bugs/?62956. Problem existed since version 6.0, since --zero was introduced.
This commit is contained in:
parent
d1e28417d5
commit
541a2dbc88
@ -658,7 +658,7 @@ void do_undo(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (undidmsg && !pletion_line)
|
||||
if (undidmsg && !ISSET(ZERO) && !pletion_line)
|
||||
statusline(HUSH, _("Undid %s"), undidmsg);
|
||||
|
||||
openfile->current_undo = openfile->current_undo->next;
|
||||
@ -828,7 +828,7 @@ void do_redo(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (redidmsg)
|
||||
if (redidmsg && !ISSET(ZERO))
|
||||
statusline(HUSH, _("Redid %s"), redidmsg);
|
||||
|
||||
openfile->current_undo = u;
|
||||
|
Loading…
Reference in New Issue
Block a user