From 541a2dbc88419f023c9b1961ba8df081c6622a4f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 25 Aug 2022 08:48:07 +0200 Subject: [PATCH] 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. --- src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index bb54b972..faa3f411 100644 --- a/src/text.c +++ b/src/text.c @@ -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;