Commit d0b72552 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Oops! You can't swap those two conditions.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5377 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 26eed9d4
Showing with 1 addition and 1 deletion
+1 -1
......@@ -629,7 +629,7 @@ void do_redo(void)
undo *u = openfile->undotop;
/* Get the previous undo item. */
while (u->next != openfile->current_undo && u != NULL)
while (u != NULL && u->next != openfile->current_undo)
u = u->next;
if (u == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment