tweaks: fix compilation when configured with --enable-tiny

When moving the cursor to the top-left corner, it is not necessary
to compute leftedge because firstcolumn IS the relevant leftedge.

Reported-by: Jordi Mallach <jordi@debian.org>
master
Benno Schulenberg 2017-08-29 19:28:44 +02:00
parent 758b4e66db
commit 28cfab7580
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ void do_page_up(void)
openfile->current = openfile->edittop;
openfile->current_y = 0;
leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop);
leftedge = openfile->firstcolumn;
target_column = 0;
} else
get_edge_and_target(&leftedge, &target_column);
@ -152,7 +152,7 @@ void do_page_down(void)
openfile->current = openfile->edittop;
openfile->current_y = 0;
leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop);
leftedge = openfile->firstcolumn;
target_column = 0;
} else
get_edge_and_target(&leftedge, &target_column);