- page_down() do not edit_update() if we are moving to the bottom of the file
and the bottom is currently in the edit buffer. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@74 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
01dc83ae12
commit
acf71da636
2
move.c
2
move.c
|
@ -57,13 +57,13 @@ int page_down(void)
|
||||||
if (editbot != filebot) {
|
if (editbot != filebot) {
|
||||||
current_y = 0;
|
current_y = 0;
|
||||||
current = editbot;
|
current = editbot;
|
||||||
|
edit_update_top(current);
|
||||||
} else
|
} else
|
||||||
while (current != filebot) {
|
while (current != filebot) {
|
||||||
current = current->next;
|
current = current->next;
|
||||||
current_y++;
|
current_y++;
|
||||||
}
|
}
|
||||||
|
|
||||||
edit_update_top(current);
|
|
||||||
update_cursor();
|
update_cursor();
|
||||||
UNSET(KEEP_CUTBUFFER);
|
UNSET(KEEP_CUTBUFFER);
|
||||||
check_statblank();
|
check_statblank();
|
||||||
|
|
Loading…
Reference in New Issue