From: Benno Schulenberg Date: Thu, 29 Oct 2015 09:04:30 +0000 (+0000) Subject: Oops! You can't swap those two conditions. X-Git-Tag: v2.5.0~85 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d0b72552bf99c73409953f50ef9d81f293931c24;p=nano.git 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 --- diff --git a/src/text.c b/src/text.c index e704a36c..c207b467 100644 --- a/src/text.c +++ b/src/text.c @@ -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) {