]> git.wh0rd.org Git - nano.git/commitdiff
bugfix for page_down_center
authorRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 5 Jul 2000 03:08:28 +0000 (03:08 +0000)
committerRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 5 Jul 2000 03:08:28 +0000 (03:08 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@70 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

move.c

diff --git a/move.c b/move.c
index 1db5be1b5c3f5d3bf3c1e11ec0e2a1db435b807d..37f46d72dbef8dccd44c8b35e40e5c6a6e056c2a 100644 (file)
--- a/move.c
+++ b/move.c
 
 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)