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:
committed by
Bram Moolenaar
parent
9510d22463
commit
29ab524358
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user