Permalink
Browse files

patch 8.0.1292: quick clicks in the WinBar start Visual mode

Problem:    Quick clicks in the WinBar start Visual mode.
Solution:   Use a double click in the WinBar like a normal click.
  • Loading branch information...
brammool committed Nov 12, 2017
1 parent f8c53d3 commit d327b0c68fa9b32877123f77560f4521a9eb39db
Showing with 17 additions and 0 deletions.
  1. +15 −0 src/ui.c
  2. +2 −0 src/version.c
View
@@ -2653,6 +2653,21 @@ jump_to_mouse(
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();
View
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1292,
/**/
1291,
/**/

0 comments on commit d327b0c

Please sign in to comment.