diff --git a/move.c b/move.c index 1db5be1b5c3f5d3bf3c1e11ec0e2a1db435b807d..37f46d72dbef8dccd44c8b35e40e5c6a6e056c2a 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)