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.
master
Benno Schulenberg 2019-04-04 12:37:16 +02:00
parent 1a1519b6cd
commit cd0917fe10
1 changed files with 0 additions and 5 deletions

View File

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