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
parent
758b4e66db
commit
28cfab7580
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue