mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 14:51:36 +03:00
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:
parent
23ecb17595
commit
e0e568fe17
6
move.c
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user