diff --git a/src/text.c b/src/text.c index 8ed330d3..f6f1deaa 100644 --- a/src/text.c +++ b/src/text.c @@ -862,7 +862,7 @@ void do_redo(void) while (u != NULL && u->next != openfile->current_undo) u = u->next; - if (u->next != openfile->current_undo) { + if (u == NULL) { statusline(ALERT, "Bad undo stack -- please report a bug"); return; }