diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-25 15:49:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-25 15:49:07 +0200 |
commit | 8d9b40e71ab62f43c65a52225cb833ecc0d1bf6b (patch) | |
tree | a25e59faa9adfd7e352c407ded5beedf4242d1d2 /src/ex_getln.c | |
parent | 0fe849a13b4c0753d6b2424783879696a1fd4421 (diff) | |
download | vim-git-8d9b40e71ab62f43c65a52225cb833ecc0d1bf6b.tar.gz |
Add support for horizontal scroll wheel. (Bjorn Winckler)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 153271b5c..7b7874ad4 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1334,6 +1334,8 @@ getcmdline(firstc, count, indent) /* Mouse scroll wheel: ignored here */ case K_MOUSEDOWN: case K_MOUSEUP: + case K_MOUSELEFT: + case K_MOUSERIGHT: /* Alternate buttons ignored here */ case K_X1MOUSE: case K_X1DRAG: @@ -1361,7 +1363,7 @@ getcmdline(firstc, count, indent) case K_HOR_SCROLLBAR: if (msg_scrolled == 0) { - gui_do_horiz_scroll(); + gui_do_horiz_scroll(scrollbar_value, FALSE); redrawcmd(); } goto cmdline_not_changed; |