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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220424145910.882551C43E2%40moolenaar.net.

Raspunde prin e-mail lui