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:
Benno Schulenberg 2022-08-25 08:48:07 +02:00
parent d1e28417d5
commit 541a2dbc88

View File

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