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.
master
Benno Schulenberg 2017-04-18 21:07:17 +02:00
parent 7e1648fdb0
commit b3b3dd5792
1 changed files with 2 additions and 1 deletions

View File

@ -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) {