commit 7b5cc1dcda523a770b0f0af1f5969b339455e06d
parent 2b3854787581412e33bafdddbbc3d0a41d79767f
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 5 May 2017 12:06:48 +0200
display: keep the cursor put, also when toggling nohelp or morespace
Also when toggling the help lines back on or the extra editing space
back off, keep the cursor near the bottom of the screen if it /was/
there, instead of centering it -- if smooth scrolling is on, that is.
This supplements the fix for https://savannah.gnu.org/bugs/?50933.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1386,6 +1386,7 @@ void do_toggle(int flag)
case MORE_SPACE:
case NO_HELP:
window_init();
+ focusing=FALSE;
total_refresh();
break;
case SUSPEND: