diff --git a/ChangeLog b/ChangeLog index 347b39a7bd55790f2e8e18df443b1b46b79f2563..c319585b0f8a78921f9e55f9325cd069a0054f11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -109,6 +109,8 @@ CVS code - - help.c: do_help() - Simplify screen update handling and exiting. (DLR) + - Don't allow moving down a page when the last line of the help + text is onscreen. (DLR) - move.c: do_scroll_up(), do_scroll_down() - Fix problems where, after scrolling, the previous and current diff --git a/src/help.c b/src/help.c index 059aad4a48ea3001ec5f9946db6fcd1011345998..27e211bbf34c7332d26f444dc68b3732426dfc18 100644 --- a/src/help.c +++ b/src/help.c @@ -148,7 +148,7 @@ void do_help(void (*refresh_func)(void)) line = 0; break; case NANO_NEXTPAGE_KEY: - if (line + (editwinrows - 2) <= last_line) + if (line + (editwinrows - 1) < last_line) line += editwinrows - 2; break; case NANO_PREVLINE_KEY: