From: Robert Siemborski Date: Wed, 5 Jul 2000 03:08:28 +0000 (+0000) Subject: bugfix for page_down_center X-Git-Tag: v0.9.12~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e0e568fe17b4b594849f08f30c1b476d2091ec6e;p=nano.git bugfix for page_down_center git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@70 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/move.c b/move.c index 1db5be1b..37f46d72 100644 --- a/move.c +++ b/move.c @@ -34,19 +34,15 @@ void page_down_center(void) { - if (editbot->next != NULL && editbot->next != filebot) { + if (editbot != filebot) { edit_update(editbot->next); center_cursor(); - } else if (editbot != filebot) { - edit_update(editbot); - center_cursor(); } else { while (current != filebot) current = current->next; edit_update(current); } update_cursor(); - } int page_down(void)