diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-09 14:11:46 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-05-09 17:16:22 +0800 |
commit | 84c031fade85e48e549fa20ecafd71c3f9540e2b (patch) | |
tree | 66c4db696c3dfc1db267f2b4b97ad19334600d71 | |
parent | a501127899fc0ce444d4a31def51cb17cfbbf08f (diff) | |
download | rneovim-84c031fade85e48e549fa20ecafd71c3f9540e2b.tar.gz rneovim-84c031fade85e48e549fa20ecafd71c3f9540e2b.tar.bz2 rneovim-84c031fade85e48e549fa20ecafd71c3f9540e2b.zip |
vim-patch:8.2.4922: mouse test fails on MS-Windows
Problem: Mouse test fails on MS-Windows.
Solution: Set 'mousemodel' to "extend".
https://github.com/vim/vim/commit/b370771bffc8395204f53209b69e35dff95a9237
-rw-r--r-- | src/nvim/testdir/test_edit.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index e73ad80c2c..848666727f 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1166,11 +1166,13 @@ func Test_edit_MOUSE() call getchar() " discard mouse event but keep mouse position call feedkeys("A\<LeftMouse>\<esc>", 'tnix') call assert_equal([0, 27, 2, 0], getpos('.')) + set mousemodel=extend " call test_setmouse(5, 3) call nvim_input_mouse('right', 'press', '', 0, 4, 2) " set mouse position call getchar() " discard mouse event but keep mouse position call feedkeys("A\<RightMouse>\<esc>\<esc>", 'tnix') call assert_equal([0, 28, 2, 0], getpos('.')) + set mousemodel& call cursor(1, 100) norm! zt " this should move by a screen up, but when the test |