]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1482: scrolling with 'splitkeep' and line() v9.1.1482
authorLuuk van Baal <luukvbaal@gmail.com>
Thu, 26 Jun 2025 18:34:15 +0000 (20:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 26 Jun 2025 18:34:15 +0000 (20:34 +0200)
commitfe803c8c04c1b73453c0dab970863ab53e3eeec7
treef78f2166fcc0bd6c87d5262d430407c75fcda681
parent26ebe21caa93ae4c3d7ceb8e83e799b0dabc6271
patch 9.1.1482: scrolling with 'splitkeep' and line()

Problem:  Topline is preemptively updated by line() in WinResized
          autocmd with 'splitkeep' != "cursor".
Solution: Set `skip_update_topline` when 'splitkeep' != "cursor".
          (Luuk van Baal)

related: neovim/neovim#34666
closes: #17613

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalfunc.c
src/testdir/dumps/Test_splitkeep_line_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_splitkeep_line_2.dump [new file with mode: 0644]
src/testdir/test_window_cmd.vim
src/version.c