mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
additional fix_editbot call
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@71 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
e0e568fe17
commit
29e9a76f36
12
winio.c
12
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user