diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-21 22:50:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 22:50:39 +0800 |
commit | 3a25995f304039517b99b8c7d79654adf65c7562 (patch) | |
tree | f02943412f92739d334a66892d03b5f4fa4bd3c8 /src/nvim/os | |
parent | d7aba51d39c7409ef388ed7cffe3e31d9fcec163 (diff) | |
parent | 06a1f82f1cc37225b6acc46e63bd2eb36e034b1a (diff) | |
download | rneovim-3a25995f304039517b99b8c7d79654adf65c7562.tar.gz rneovim-3a25995f304039517b99b8c7d79654adf65c7562.tar.bz2 rneovim-3a25995f304039517b99b8c7d79654adf65c7562.zip |
Merge pull request #32144 from zeertzjq/termkey-x1-x2
feat(tui/terminal): support X1 and X2 mouse events
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 579b08c554..3259fb500b 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -403,6 +403,7 @@ static unsigned handle_mouse_event(const char **ptr, uint8_t *buf, unsigned bufs if (type != KS_EXTRA || !((mouse_code >= KE_LEFTMOUSE && mouse_code <= KE_RIGHTRELEASE) + || (mouse_code >= KE_X1MOUSE && mouse_code <= KE_X2RELEASE) || (mouse_code >= KE_MOUSEDOWN && mouse_code <= KE_MOUSERIGHT) || mouse_code == KE_MOUSEMOVE)) { return bufsize; |