mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 03:48:02 +10:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user