diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-18 23:32:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-18 23:32:13 +0200 |
commit | 01a8f38fcd469db0360b896cb670b889619d3752 (patch) | |
tree | 91a62b01a1b4000d61d41d7cb4749d8b6119e76f /src/term.c | |
parent | d160c3401988381254a07417f92933821381ba3c (diff) | |
download | vim-git-01a8f38fcd469db0360b896cb670b889619d3752.tar.gz |
Also make ALT modifier work for mouse wheel. (Benjamin Haskell)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index c0eee98f3..57bb730e4 100644 --- a/src/term.c +++ b/src/term.c @@ -4778,6 +4778,8 @@ check_termcode(max_offset, buf, buflen) { if (wheel_code & MOUSE_CTRL) modifiers |= MOD_MASK_CTRL; + if (wheel_code & MOUSE_ALT) + modifiers |= MOD_MASK_ALT; key_name[1] = (wheel_code & 1) ? (int)KE_MOUSEUP : (int)KE_MOUSEDOWN; } |