Commit b3b3dd57 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

help: remove the final blank line, so <End> does the same as all <Down>

Since the help text is searchable, an <End> would go to the end of the
text but would leave a blank line above the statusbar -- a blank line
that wasn't there before, and that is not reached when simply holding
down <Down> all the way from the top.
parent 7e1648fd
Showing with 2 additions and 1 deletion
+2 -1
......@@ -77,6 +77,7 @@ void display_the_help_text(bool redisplaying)
close_buffer();
open_buffer(tempfilename, FALSE);
remove_magicline();
display_buffer();
......@@ -189,7 +190,7 @@ void do_help(void)
} else if (func == do_up_void) {
do_up(TRUE);
} else if (func == do_down_void) {
if (openfile->edittop->lineno + editwinrows <
if (openfile->edittop->lineno + editwinrows - 1 <
openfile->filebot->lineno)
do_down(TRUE);
} else if (func == do_page_up) {
......
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