nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 541a2dbc88419f023c9b1961ba8df081c6622a4f
parent d1e28417d5dea8141f161feac6a0a07fc6a3fcca
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 25 Aug 2022 08:48:07 +0200

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.

Diffstat:
Msrc/text.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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;