# HG changeset patch # User Bram Moolenaar # Date 1650812404 -7200 # Node ID a1de4ee8c40d08b7c902021c017f6e2922ae7118 # Parent 315269cfa4cc6bb42a99bc7f5fd33d1daa516f1d patch 8.2.4818: no test for what 8.2.4806 fixes Commit: https://github.com/vim/vim/commit/ac92ab771952b2a9ee39ea6fa5e70e4c072942d5 Author: zeertzjq Date: Sun Apr 24 15:58:30 2022 +0100 patch 8.2.4818: no test for what 8.2.4806 fixes Problem: No test for what 8.2.4806 fixes. Solution: Add a test. (closes https://github.com/vim/vim/issues/10727) diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -1566,6 +1566,34 @@ func Test_plug_remap() %bw! endfunc +func Test_mouse_drag_mapped_start_select() + set mouse=a + set selectmode=key,mouse + func ClickExpr() + call test_setmouse(1, 1) + return "\" + endfunc + func DragExpr() + call test_setmouse(1, 2) + return "\" + endfunc + nnoremap ClickExpr() + nmap DragExpr() + + nnoremap + exe "normal \\" + call assert_equal('s', mode()) + exe "normal! \\" + + nunmap + nunmap + nunmap + delfunc ClickExpr + delfunc DragExpr + set selectmode& + set mouse& +endfunc + " Test for mapping in Insert mode func Test_mouse_drag_insert_map() set mouse=a diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4818, +/**/ 4817, /**/ 4816,