diff --git a/move.c b/move.c index 1db5be1b..37f46d72 100644 --- a/move.c +++ b/move.c @@ -34,19 +34,15 @@ void page_down_center(void) { - if (editbot->next != NULL && editbot->next != filebot) { + if (editbot != filebot) { edit_update(editbot->next); center_cursor(); - } else if (editbot != filebot) { - edit_update(editbot); - center_cursor(); } else { while (current != filebot) current = current->next; edit_update(current); } update_cursor(); - } int page_down(void)