Patch 8.2.4806
Problem:    A mapping using <LeftDrag> does not start Select mode.
Solution:   When checking for starting select mode with the mouse also do this
            when there is typeahead. (closes #10249)
Files:      src/normal.c


*** ../vim-8.2.4805/src/normal.c        2022-04-09 21:13:47.177970155 +0100
--- src/normal.c        2022-04-22 21:13:25.445453017 +0100
***************
*** 5527,5538 ****
  
  /*
   * Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu.
   */
      void
  may_start_select(int c)
  {
!     VIsual_select = (stuff_empty() && typebuf_typed()
!                   && (vim_strchr(p_slm, c) != NULL));
  }
  
  /*
--- 5527,5539 ----
  
  /*
   * Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu.
+  * When "c" is 'o' (checking for "mouse") then also when mapped.
   */
      void
  may_start_select(int c)
  {
!     VIsual_select = (c == 'o' || (stuff_empty() && typebuf_typed()))
!                   && vim_strchr(p_slm, c) != NULL;
  }
  
  /*
*** ../vim-8.2.4805/src/version.c       2022-04-22 20:06:55.856991658 +0100
--- src/version.c       2022-04-22 21:17:59.593213885 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4806,
  /**/

-- 
Everyone has a photographic memory. Some don't have film.

 /// 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/20220422202609.862D31C43DE%40moolenaar.net.

Raspunde prin e-mail lui