Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit b87bfb8

Browse files
committed
Ticket #4652: mcedit: fix jumping to bottom of screen
...in non-fullscreen mode. * (edit_end_page): fix count of lines from cursor down to bottom of screen. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
1 parent f9a2d3a commit b87bfb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/editor/edit.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ static void
825825
edit_end_page (WEdit *edit)
826826
{
827827
edit_update_curs_row (edit);
828-
edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - 1, FALSE);
828+
edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - (edit->fullscreen ? 1 : 3),
829+
FALSE);
829830
}
830831

831832
/* --------------------------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)