mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user