aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-24 11:26:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-04 21:18:22 +0800
commit04bd700ac3bc2bdea0e0d8747de95dab2034aa11 (patch)
tree7b518323affdfcc3622d142f195f2c36c27c3319 /src/nvim/os/input.c
parenta5fe7940c8b9436b78ae408eae8345266423f2c8 (diff)
downloadrneovim-04bd700ac3bc2bdea0e0d8747de95dab2034aa11.tar.gz
rneovim-04bd700ac3bc2bdea0e0d8747de95dab2034aa11.tar.bz2
rneovim-04bd700ac3bc2bdea0e0d8747de95dab2034aa11.zip
feat(tui): support 'mousemoveevent'
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r--src/nvim/os/input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index bfe6d59dc6..ea9f31d776 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -293,7 +293,8 @@ static uint8_t check_multiclick(int code, int grid, int row, int col)
|| code == KE_MOUSEDOWN
|| code == KE_MOUSEUP
|| code == KE_MOUSELEFT
- || code == KE_MOUSERIGHT) {
+ || code == KE_MOUSERIGHT
+ || code == KE_MOUSEMOVE) {
return 0;
}
uint64_t mouse_time = os_hrtime(); // time of current mouse click (ns)
@@ -347,7 +348,8 @@ static unsigned int handle_mouse_event(char **ptr, uint8_t *buf, unsigned int bu
if (type != KS_EXTRA
|| !((mouse_code >= KE_LEFTMOUSE && mouse_code <= KE_RIGHTRELEASE)
- || (mouse_code >= KE_MOUSEDOWN && mouse_code <= KE_MOUSERIGHT))) {
+ || (mouse_code >= KE_MOUSEDOWN && mouse_code <= KE_MOUSERIGHT)
+ || mouse_code == KE_MOUSEMOVE)) {
return bufsize;
}