mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
terminal.c: handle ctrl+space and ctrl+@
This commit is contained in:
@@ -512,6 +512,12 @@ void terminal_send(Terminal *term, char *data, size_t size)
|
||||
void terminal_send_key(Terminal *term, int c)
|
||||
{
|
||||
VTermModifier mod = VTERM_MOD_NONE;
|
||||
|
||||
// Convert K_ZERO back to ASCII
|
||||
if (c == K_ZERO) {
|
||||
c = Ctrl_AT;
|
||||
}
|
||||
|
||||
VTermKey key = convert_key(c, &mod);
|
||||
|
||||
if (key) {
|
||||
|
Reference in New Issue
Block a user