From 7b5cc1dcda523a770b0f0af1f5969b339455e06d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Fri, 5 May 2017 12:06:48 +0200 Subject: [PATCH] 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. --- src/nano.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nano.c b/src/nano.c index 94b7c460..caacafd8 100644 --- 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: -- GitLab