Patch 8.0.1292
Problem:    Quick clicks in the WinBar start Visual mode.
Solution:   Use a double click in the WinBar like a normal click.
Files:      src/ui.c


*** ../vim-8.0.1291/src/ui.c    2017-10-28 21:08:38.991456926 +0200
--- src/ui.c    2017-11-12 16:43:56.853623451 +0100
***************
*** 2653,2658 ****
--- 2653,2673 ----
            return IN_STATUS_LINE;
        if (on_sep_line)
            return IN_SEP_LINE;
+ #ifdef FEAT_MENU
+       if (in_winbar)
+       {
+           /* A quick second click may arrive as a double-click, but we use it
+            * as a second click in the WinBar. */
+           if ((mod_mask & MOD_MASK_MULTI_CLICK) && !(flags & MOUSE_RELEASED))
+           {
+               wp = mouse_find_win(&row, &col);
+               if (wp == NULL)
+                   return IN_UNKNOWN;
+               winbar_click(wp, col);
+           }
+           return IN_OTHER_WIN | MOUSE_WINBAR;
+       }
+ #endif
        if (flags & MOUSE_MAY_STOP_VIS)
        {
            end_visual_mode();
*** ../vim-8.0.1291/src/version.c       2017-11-12 15:36:34.029935566 +0100
--- src/version.c       2017-11-12 16:51:22.314648571 +0100
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     1292,
  /**/


-- 
FIRST VILLAGER: We have found a witch.  May we burn her?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui