diff options
author | RJ Miller <rjmiller10@gmail.com> | 2016-07-10 20:04:09 -0400 |
---|---|---|
committer | RJ Miller <rjmiller10@gmail.com> | 2017-01-10 18:30:14 -0500 |
commit | 5ffa01c8b78292bef0646168da856c726c2e4bc7 (patch) | |
tree | 825308c600568fc634f51241dd1f537d254cedda /src | |
parent | 4fd4f66514da4dfcd5d84c709be89d57616be753 (diff) | |
download | rneovim-5ffa01c8b78292bef0646168da856c726c2e4bc7.tar.gz rneovim-5ffa01c8b78292bef0646168da856c726c2e4bc7.tar.bz2 rneovim-5ffa01c8b78292bef0646168da856c726c2e4bc7.zip |
terminal.c: handle ctrl+space and ctrl+@
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/terminal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index df15921f41..c4a8a52816 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -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) { |