1
0
forked from aniani/vim

patch 9.0.0445: when opening/closing window text moves up/down

Problem:    When opening/closing window text moves up/down.
Solution:   Add the 'splitscroll' option.  When off text will keep its
            position as much as possible.
This commit is contained in:
Luuk van Baal
2022-09-11 16:59:53 +01:00
committed by Bram Moolenaar
parent 9510d22463
commit 29ab524358
10 changed files with 287 additions and 10 deletions

View File

@@ -981,7 +981,8 @@ curs_columns(
/*
* First make sure that w_topline is valid (after moving the cursor).
*/
update_topline();
if (p_spsc)
update_topline();
/*
* Next make sure that w_cline_row is valid.