display: catch all cases where the cursor can be pushed offscreen
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:David Lawrence Ramsey <pooka109@gmail.com>
Showing
+1 -6
Please register or sign in to comment