Skip to content

Commit

Permalink
terminal.c: explicitly handle ASCII 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangalamb committed Nov 14, 2016
1 parent 38d7f09 commit 61874e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nvim/terminal.c
Expand Up @@ -513,6 +513,11 @@ 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;
}

c = unmodify_key(c, &mod_mask);
VTermKey key = convert_key(c, &mod);

Expand Down

0 comments on commit 61874e8

Please sign in to comment.