aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-14 16:59:54 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-14 16:59:54 -0300
commit7b537ffda9751c1ec48fafae0f5b2a6bee29ad8b (patch)
treeb612555e8f25bafe8548d243456cb1742a142c27 /src
parent8596776bf68f0e95ba3ff7b5176ef62b56f37f47 (diff)
downloadrneovim-7b537ffda9751c1ec48fafae0f5b2a6bee29ad8b.tar.gz
rneovim-7b537ffda9751c1ec48fafae0f5b2a6bee29ad8b.tar.bz2
rneovim-7b537ffda9751c1ec48fafae0f5b2a6bee29ad8b.zip
input: Read row/col position when processing mouse wheel
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index 130e239a34..f04f0d8092 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -223,7 +223,8 @@ static unsigned int handle_mouse_event(char **ptr, uint8_t *buf,
mouse_code = buf[5];
}
- if (mouse_code < KE_LEFTMOUSE || mouse_code > KE_RIGHTRELEASE) {
+ if (!((mouse_code >= KE_LEFTMOUSE && mouse_code <= KE_RIGHTRELEASE)
+ || (mouse_code >= KE_MOUSEDOWN && mouse_code <= KE_MOUSERIGHT))) {
return bufsize;
}