diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-18 14:26:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-18 14:26:11 +0200 |
commit | 5074e3018bca1527bbb5b54f33be1d701e197c5b (patch) | |
tree | 475f4820418157b755dfdc4c5a7fee67fe600cbc /src/term.c | |
parent | fdf732eed7b1a55af0bf53e25c2ead917fd6df51 (diff) | |
download | vim-git-5074e3018bca1527bbb5b54f33be1d701e197c5b.tar.gz |
Make CTRL modifier work for mouse wheel. (Benjamin Haskell)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 2e0376ce1..c0eee98f3 100644 --- a/src/term.c +++ b/src/term.c @@ -4775,8 +4775,12 @@ check_termcode(max_offset, buf, buflen) /* Work out our pseudo mouse event */ key_name[0] = (int)KS_EXTRA; if (wheel_code != 0) + { + if (wheel_code & MOUSE_CTRL) + modifiers |= MOD_MASK_CTRL; key_name[1] = (wheel_code & 1) ? (int)KE_MOUSEUP : (int)KE_MOUSEDOWN; + } else key_name[1] = get_pseudo_mouse_code(current_button, is_click, is_drag); |