Commit 29e9a76f authored by Robert Siemborski's avatar Robert Siemborski
Browse files

additional fix_editbot call

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@71 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 9 deletions
+3 -9
...@@ -820,8 +820,7 @@ void edit_refresh(void) ...@@ -820,8 +820,7 @@ void edit_refresh(void)
*/ */
void edit_update(filestruct * fileptr) void edit_update(filestruct * fileptr)
{ {
int i = 0;
int lines = 0, i = 0;
filestruct *temp; filestruct *temp;
if (fileptr == NULL) if (fileptr == NULL)
...@@ -832,14 +831,9 @@ void edit_update(filestruct * fileptr) ...@@ -832,14 +831,9 @@ void edit_update(filestruct * fileptr)
i++; i++;
temp = temp->prev; temp = temp->prev;
} }
edittop = temp;
while (lines <= editwinrows - 1 && lines <= totlines && temp != NULL edittop = temp;
&& temp != filebot) { fix_editbot();
temp = temp->next;
lines++;
}
editbot = temp;
edit_refresh(); edit_refresh();
} }
......
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