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/getchar.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/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 75d05fc891..8f1e5bb6c1 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -3655,11 +3655,13 @@ int check_abbr(int c, char_u *ptr, int col, int mincol) tb[j++] = (char_u)K_SECOND(c); tb[j++] = (char_u)K_THIRD(c); } else { - if (c < ABBR_OFF && (c < ' ' || c > '~')) - tb[j++] = Ctrl_V; /* special char needs CTRL-V */ - /* if ABBR_OFF has been added, remove it here */ - if (c >= ABBR_OFF) + if (c < ABBR_OFF && (c < ' ' || c > '~')) { + tb[j++] = Ctrl_V; // special char needs CTRL-V + } + // if ABBR_OFF has been added, remove it here. + if (c >= ABBR_OFF) { c -= ABBR_OFF; + } j += utf_char2bytes(c, tb + j); } tb[j] = NUL; |