]> git.wh0rd.org Git - nano.git/commitdiff
additional fix_editbot call
authorRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 5 Jul 2000 03:16:04 +0000 (03:16 +0000)
committerRobert Siemborski <rjs3@andrew.cmu.edu>
Wed, 5 Jul 2000 03:16:04 +0000 (03:16 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@71 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

winio.c

diff --git a/winio.c b/winio.c
index 8869a765932c7cf465a154c00a80a3110f66766b..429bee9051c055f6f4812f9e6fb1b6003dc65459 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -820,8 +820,7 @@ void edit_refresh(void)
  */
 void edit_update(filestruct * fileptr)
 {
-
-    int lines = 0, i = 0;
+    int i = 0;
     filestruct *temp;
 
     if (fileptr == NULL)
@@ -832,14 +831,9 @@ void edit_update(filestruct * fileptr)
        i++;
        temp = temp->prev;
     }
-    edittop = temp;
 
-    while (lines <= editwinrows - 1 && lines <= totlines && temp != NULL
-          && temp != filebot) {
-       temp = temp->next;
-       lines++;
-    }
-    editbot = temp;
+    edittop = temp;
+    fix_editbot();
 
     edit_refresh();
 }