Skip to content

Commit

Permalink
patch 8.0.1292: quick clicks in the WinBar start Visual mode
Browse files Browse the repository at this point in the history
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 d327b0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ui.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2653,6 +2653,21 @@ jump_to_mouse(
return IN_STATUS_LINE; return IN_STATUS_LINE;
if (on_sep_line) if (on_sep_line)
return IN_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) if (flags & MOUSE_MAY_STOP_VIS)
{ {
end_visual_mode(); end_visual_mode();
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1292,
/**/ /**/
1291, 1291,
/**/ /**/
Expand Down

0 comments on commit d327b0c

Please sign in to comment.