diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-17 21:42:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 21:42:55 +0800 |
commit | d0d132fbd055834cbecb3d4e3a123a6ea8f099ec (patch) | |
tree | f4fc189995f1d29ee5d4137cba1c8e89a2e6e116 /src/nvim/terminal.c | |
parent | 881d17a11393da75a27c072faa3fd45f510175fe (diff) | |
download | rneovim-d0d132fbd055834cbecb3d4e3a123a6ea8f099ec.tar.gz rneovim-d0d132fbd055834cbecb3d4e3a123a6ea8f099ec.tar.bz2 rneovim-d0d132fbd055834cbecb3d4e3a123a6ea8f099ec.zip |
fix(terminal): don't send unknown special keys to terminal (#24378)
Special keys are negative integers, so sending them to terminal leads to
strange behavior.
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r-- | src/nvim/terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 1479656bca..caa4674cef 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -766,7 +766,7 @@ void terminal_send_key(Terminal *term, int c) if (key) { vterm_keyboard_key(term->vt, key, mod); - } else { + } else if (!IS_SPECIAL(c)) { vterm_keyboard_unichar(term->vt, (uint32_t)c, mod); } } |