nano

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

commit cd0917fe10ff7885be54c52595a0f94301205f06
parent 1a1519b6cd4e531a19a9de5bea5112d929796203
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  4 Apr 2019 12:37:16 +0200

tweaks: remove an unneeded check for NULL and its associated message

The message (or its equivalent) has been there for years
and no one ever reported seeing it.

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

diff --git a/src/text.c b/src/text.c @@ -707,11 +707,6 @@ void do_redo(void) while (u != NULL && u->next != openfile->current_undo) u = u->next; - if (u == NULL) { - statusline(ALERT, "Bad undo stack -- please report a bug"); - return; - } - if (u->type <= REPLACE) { f = fsfromline(u->mark_begin_lineno); if (f == NULL)