]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1983: scrolling inactive window not possible with cursorbind v9.0.1983
authorzeertzjq <zeertzjq@outlook.com>
Wed, 4 Oct 2023 19:45:33 +0000 (21:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 4 Oct 2023 19:45:33 +0000 (21:45 +0200)
commit8e5f26ec6a1446aabffa7a0a7819a7462372a5b8
tree263693efac261c5910049981776d0ed7d3c71878
parent4dbb2669e9ed9ec6864705dcb569715e417e1303
patch 9.0.1983: scrolling inactive window not possible with cursorbind

Problem:  Scrolling non-current window using mouse is inconsistent
          depending on 'scrollbind'/'scrolloff' and different from GUI
          vertical scrollbar when 'cursorbind' is set.
Solution: Don't move cursor in non-current windows for 'cursorbind' if
          cursor in the current window didn't move.

closes: #13219
closes: #13210

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/move.c
src/testdir/test_scroll_opt.vim
src/version.c