summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-03-16 14:20:51 +0100
committerBram Moolenaar <Bram@vim.org>2013-03-16 14:20:51 +0100
commit2526ef276b97b1a5275fc0039fb45ca7aa7b6fac (patch)
tree45c6e395fa38446c3fd7952f0e828ecd9dc5f5b0 /src/eval.c
parent20754027b3b8c29dfc5ee0b5dfa6a5459ea6b903 (diff)
downloadvim-2526ef276b97b1a5275fc0039fb45ca7aa7b6fac.zip
updated for version 7.3.862
Problem: Dragging the status line can be slow. Solution: Look ahead and drop the drag event if there is a next one.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/eval.c b/src/eval.c
index ad200598b..7df4f7dda 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -11238,27 +11238,7 @@ f_getchar(argvars, rettv)
rettv->vval.v_string = vim_strsave(temp);
#ifdef FEAT_MOUSE
- if (n == K_LEFTMOUSE
- || n == K_LEFTMOUSE_NM
- || n == K_LEFTDRAG
- || n == K_LEFTRELEASE
- || n == K_LEFTRELEASE_NM
- || n == K_MIDDLEMOUSE
- || n == K_MIDDLEDRAG
- || n == K_MIDDLERELEASE
- || n == K_RIGHTMOUSE
- || n == K_RIGHTDRAG
- || n == K_RIGHTRELEASE
- || n == K_X1MOUSE
- || n == K_X1DRAG
- || n == K_X1RELEASE
- || n == K_X2MOUSE
- || n == K_X2DRAG
- || n == K_X2RELEASE
- || n == K_MOUSELEFT
- || n == K_MOUSERIGHT
- || n == K_MOUSEDOWN
- || n == K_MOUSEUP)
+ if (is_mouse_key(n))
{
int row = mouse_row;
int col = mouse_col;