diff --git a/src/help.c b/src/help.c index 176f42893430c0ef555bc081716c7c405fcd0b76..059aad4a48ea3001ec5f9946db6fcd1011345998 100644 --- a/src/help.c +++ b/src/help.c @@ -156,7 +156,7 @@ void do_help(void (*refresh_func)(void)) line--; break; case NANO_NEXTLINE_KEY: - if (line + editwinrows <= last_line) + if (line + (editwinrows - 1) < last_line) line++; break; case NANO_FIRSTLINE_ALTKEY: