aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/setup.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-05 07:48:37 +0800
committerGitHub <noreply@github.com>2023-10-05 07:48:37 +0800
commit5f4f83ba322d2642d485669ecf762b629241d9dc (patch)
tree80e15591eddaf7b42efe08d437818e6e123394e5 /test/old/testdir/setup.vim
parentd7a240b1e99201fcd8ce17509f115d583b6e53a1 (diff)
downloadrneovim-5f4f83ba322d2642d485669ecf762b629241d9dc.tar.gz
rneovim-5f4f83ba322d2642d485669ecf762b629241d9dc.tar.bz2
rneovim-5f4f83ba322d2642d485669ecf762b629241d9dc.zip
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 https://github.com/vim/vim/commit/8e5f26ec6a1446aabffa7a0a7819a7462372a5b8
Diffstat (limited to 'test/old/testdir/setup.vim')
-rw-r--r--test/old/testdir/setup.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/old/testdir/setup.vim b/test/old/testdir/setup.vim
index 4e8859a33e..096ddba40b 100644
--- a/test/old/testdir/setup.vim
+++ b/test/old/testdir/setup.vim
@@ -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.