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.
master
Benno Schulenberg 2017-05-05 12:06:48 +02:00
parent 2b38547875
commit 7b5cc1dcda
1 changed files with 1 additions and 0 deletions

View File

@ -1386,6 +1386,7 @@ void do_toggle(int flag)
case MORE_SPACE:
case NO_HELP:
window_init();
focusing=FALSE;
total_refresh();
break;
case SUSPEND: