bugfix for page_down_center

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@70 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Robert Siemborski 2000-07-05 03:08:28 +00:00
parent 23ecb17595
commit e0e568fe17

6
move.c
View File

@ -34,19 +34,15 @@
void page_down_center(void) void page_down_center(void)
{ {
if (editbot->next != NULL && editbot->next != filebot) { if (editbot != filebot) {
edit_update(editbot->next); edit_update(editbot->next);
center_cursor(); center_cursor();
} else if (editbot != filebot) {
edit_update(editbot);
center_cursor();
} else { } else {
while (current != filebot) while (current != filebot)
current = current->next; current = current->next;
edit_update(current); edit_update(current);
} }
update_cursor(); update_cursor();
} }
int page_down(void) int page_down(void)