From 26b54d5c169d7d4afeb5433355b29eee78c12add Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 17 Sep 2022 09:40:19 +0800 Subject: test(old): add a function roughly equivalent to test_setmouse() (#20224) Mouse movement events usually have no effect, so passing "move" to nvim_input_mouse() works in most cases. --- src/nvim/testdir/test_mapping.vim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/nvim/testdir/test_mapping.vim') diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim index e1d0b9a9ba..72c84b5356 100644 --- a/src/nvim/testdir/test_mapping.vim +++ b/src/nvim/testdir/test_mapping.vim @@ -1006,15 +1006,14 @@ func Test_plug_remap() endfunc func Test_mouse_drag_mapped_start_select() - CheckFunction test_setmouse set mouse=a set selectmode=key,mouse func ClickExpr() - call test_setmouse(1, 1) + call Ntest_setmouse(1, 1) return "\" endfunc func DragExpr() - call test_setmouse(1, 2) + call Ntest_setmouse(1, 2) return "\" endfunc nnoremap ClickExpr() @@ -1036,14 +1035,13 @@ endfunc " Test for mapping in Insert mode func Test_mouse_drag_insert_map() - CheckFunction test_setmouse set mouse=a func ClickExpr() - call test_setmouse(1, 1) + call Ntest_setmouse(1, 1) return "\" endfunc func DragExpr() - call test_setmouse(1, 2) + call Ntest_setmouse(1, 2) return "\" endfunc inoremap ClickExpr() -- cgit