Commit 28cfab75 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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: default avatarJordi Mallach <jordi@debian.org>
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment