diff options
author | ZviRackover <zvirack@gmail.com> | 2018-09-02 02:14:47 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-09-09 10:45:50 +0300 |
commit | 329cfc3303cffd5c9aad7b2ad7f4323354d68b0d (patch) | |
tree | e9abce8472ef283396c7830947c56e1d6154ef86 /src/nvim/keymap.c | |
parent | ac13e65ae0ce98516e816ba4fcf468d19e750c30 (diff) | |
download | rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.gz rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.bz2 rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.zip |
lint: clean-up after parent commits
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r-- | src/nvim/keymap.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index ea1e84452e..ade5487ec8 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -462,14 +462,13 @@ char_u *get_special_key_name(int c, int modifiers) string[idx++] = '_'; string[idx++] = (char_u)KEY2TERMCAP0(c); string[idx++] = KEY2TERMCAP1(c); - } - /* Not a special key, only modifiers, output directly */ - else { - if (utf_char2len(c) > 1) + } else { + // Not a special key, only modifiers, output directly. + if (utf_char2len(c) > 1) { idx += utf_char2bytes(c, string + idx); - else if (vim_isprintc(c)) + } else if (vim_isprintc(c)) { string[idx++] = (char_u)c; - else { + } else { s = transchar(c); while (*s) string[idx++] = *s++; |