diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-04 21:44:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-04 21:44:31 +0800 |
| commit | 5ac6654334785427886d5698fdbe79577c8c6efe (patch) | |
| tree | b5e4773025a714f20391e800232ec35929794133 /src/nvim/os | |
| parent | 900a7741821ff8dfb0634290a343e501955e9a1a (diff) | |
| parent | 82d128405aaeb619a0c04353449f5717da126249 (diff) | |
| download | rneovim-5ac6654334785427886d5698fdbe79577c8c6efe.tar.gz rneovim-5ac6654334785427886d5698fdbe79577c8c6efe.tar.bz2 rneovim-5ac6654334785427886d5698fdbe79577c8c6efe.zip | |
Merge pull request #19481 from zeertzjq/vim-8.2.4674
Add 'mousemoveevent' as a UI option
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/input.c | 6 |
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; } |