Patch 8.2.4818

7 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 24, 2022, 10:59:14 AM4/24/22
to vim...@googlegroups.com

Patch 8.2.4818 (after 8.2 4806)
Problem: No test for what 8.2.4806 fixes.
Solution: Add a test. (closes #10727)
Files: src/testdir/test_mapping.vim


*** ../vim-8.2.4817/src/testdir/test_mapping.vim 2022-04-05 13:16:57.540981208 +0100
--- src/testdir/test_mapping.vim 2022-04-24 15:55:56.832019447 +0100
***************
*** 1566,1571 ****
--- 1566,1599 ----
%bw!
endfunc

+ func Test_mouse_drag_mapped_start_select()
+ set mouse=a
+ set selectmode=key,mouse
+ func ClickExpr()
+ call test_setmouse(1, 1)
+ return "\<LeftMouse>"
+ endfunc
+ func DragExpr()
+ call test_setmouse(1, 2)
+ return "\<LeftDrag>"
+ endfunc
+ nnoremap <expr> <F2> ClickExpr()
+ nmap <expr> <F3> DragExpr()
+
+ nnoremap <LeftDrag> <LeftDrag><Cmd><CR>
+ exe "normal \<F2>\<F3>"
+ call assert_equal('s', mode())
+ exe "normal! \<C-\>\<C-N>"
+
+ nunmap <LeftDrag>
+ nunmap <F2>
+ nunmap <F3>
+ delfunc ClickExpr
+ delfunc DragExpr
+ set selectmode&
+ set mouse&
+ endfunc
+
" Test for mapping <LeftDrag> in Insert mode
func Test_mouse_drag_insert_map()
set mouse=a
*** ../vim-8.2.4817/src/version.c 2022-04-24 15:46:38.768342012 +0100
--- src/version.c 2022-04-24 15:57:46.207916311 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4818,
/**/

--
The future isn't what it used to be.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages