diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-30 19:04:29 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-12-31 04:56:35 +0800 |
commit | 6f6abd8c02f66a71f1ad46c4596cadd5709898f4 (patch) | |
tree | 33f8142570747f5ae8caf2de382fda1f318c8a7b /src | |
parent | b4ef9134007aeab421d93299bdf3b97fba0ffa79 (diff) | |
download | rneovim-6f6abd8c02f66a71f1ad46c4596cadd5709898f4.tar.gz rneovim-6f6abd8c02f66a71f1ad46c4596cadd5709898f4.tar.bz2 rneovim-6f6abd8c02f66a71f1ad46c4596cadd5709898f4.zip |
refactor(tui): remove code that is no longer necessary
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/input.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index c7880b591d..eb5e1c65d2 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -370,15 +370,6 @@ static void forward_mouse_event(TermInput *input, TermKeyKey *key) button = last_pressed_button; } - if (ev == TERMKEY_MOUSE_UNKNOWN && !(key->code.mouse[0] & 0x20)) { - int code = key->code.mouse[0] & ~0x3c; - // https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Other-buttons - if (code == 66 || code == 67) { - ev = TERMKEY_MOUSE_PRESS; - button = code + 4 - 64; - } - } - if ((button == 0 && ev != TERMKEY_MOUSE_RELEASE) || (ev != TERMKEY_MOUSE_PRESS && ev != TERMKEY_MOUSE_DRAG && ev != TERMKEY_MOUSE_RELEASE)) { return; |