vim-patch:9.2.0413: Scrolling wrong with 'splitkeep' when changing 'cmdheight' (#39493)

Problem:  Cursor is not adjusted when 'cmdheight' is changed to cover
          the cursor with 'splitkeep' ~= "cursor".
Solution: Handle window resize for 'splitkeep' after changing 'cmdheight'.
          Ensure previous window height is set when changing 'splitkeep'
          (Luuk van Baal).

closes: vim/vim#20043

bd0f3e6da5

Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
This commit is contained in:
zeertzjq
2026-04-29 13:42:02 +08:00
committed by GitHub
parent f04dc2fcfc
commit 0697c24601
4 changed files with 20 additions and 0 deletions

View File

@@ -8633,6 +8633,7 @@ local options = {
},
{
abbreviation = 'spk',
cb = 'did_set_splitkeep',
defaults = 'cursor',
values = { 'cursor', 'screen', 'topline' },
desc = [=[