display: ensure smooth scrolling when the edit window is resized
When the editing space gets narrower, either by toggling line numbers on or making nano's window smaller, and when the cursor is near the bottom, it can be pushed offscreen. In that case, don't get it back onscreen by centering the current line but by putting it on the bottom row. This makes for a smoother experience. This fixes http://savannah.gnu.org/bugs/?50933.
Showing
+3 -0
Please register or sign in to comment