diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-23 15:08:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-23 15:08:17 +0200 |
commit | eb163d73b11c10b461a2839530173a33d7915a33 (patch) | |
tree | 581dae7631cb4d5e1f4d1aea5a071f39034a018d /src/normal.c | |
parent | e745d75c3e0d976e73bd17c395e9cce98f671692 (diff) |
patch 8.0.1138: click in window toolbar starts Visual modev8.0.1138
Problem: Click in window toolbar starts Visual mode.
Solution: Add the MOUSE_WINBAR flag.
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index d2d1a29215..d78a53bae2 100644 --- a/src/normal.c +++ b/src/normal.c @@ -2794,6 +2794,12 @@ do_mouse( */ jump_flags = jump_to_mouse(jump_flags, oap == NULL ? NULL : &(oap->inclusive), which_button); + +#ifdef FEAT_MENU + /* A click in the window toolbar has no side effects. */ + if (jump_flags & MOUSE_WINBAR) + return FALSE; +#endif moved = (jump_flags & CURSOR_MOVED); in_status_line = (jump_flags & IN_STATUS_LINE); in_sep_line = (jump_flags & IN_SEP_LINE); |