An error occurred while fetching folder content.
display: catch all cases where the cursor can be pushed offscreen
Benno Schulenberg authored
Discarding (in commit 6f9bb53b) the cap on the number of chunks to
move backwards had as an unforeseen side effect that the screen can
fail to scroll when the cursor is somehow pushed offscreen.

Fix this by setting the target row (for smooth scrolling) always to
the bottom row of the edit window when nano notices that the cursor
has gone offscreen.

This fixes https://savannah.gnu.org/bugs/?51676

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
06ffcfaf
Name Last commit Last update