Commit 6fe4e2be authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

avoid unnecessary scrolling when moving to the last line of the help

text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3548 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
...@@ -131,8 +131,10 @@ void do_help(void (*refresh_func)(void)) ...@@ -131,8 +131,10 @@ void do_help(void (*refresh_func)(void))
line = 0; line = 0;
break; break;
case NANO_LASTLINE_ALTKEY: case NANO_LASTLINE_ALTKEY:
if (meta_key && last_line > editwinrows) if (meta_key) {
line = last_line - (editwinrows - 1); if (line + (editwinrows - 1) < last_line)
line = last_line - (editwinrows - 1);
}
break; break;
} }
......
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