vim-patch:9.0.1983: scrolling inactive window not possible with cursorbind (#25507)

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: vim/vim#13219
closes: vim/vim#13210

8e5f26ec6a
This commit is contained in:
zeertzjq
2023-10-05 07:48:37 +08:00
committed by GitHub
parent d7a240b1e9
commit 5f4f83ba32
3 changed files with 81 additions and 14 deletions

View File

@@ -50,6 +50,9 @@ tlunmenu *
" roughly equivalent to test_setmouse() in Vim
func Ntest_setmouse(row, col)
call nvim_input_mouse('move', '', '', 0, a:row - 1, a:col - 1)
if state('m') == ''
call getchar(0)
endif
endfunc
" Prevent Nvim log from writing to stderr.