aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-09-02 02:14:47 +0300
committerZviRackover <zvirack@gmail.com>2018-09-09 10:45:50 +0300
commit329cfc3303cffd5c9aad7b2ad7f4323354d68b0d (patch)
treee9abce8472ef283396c7830947c56e1d6154ef86 /src/nvim/getchar.c
parentac13e65ae0ce98516e816ba4fcf468d19e750c30 (diff)
downloadrneovim-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.c10
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;