aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-09-02 01:36:18 +0300
committerZviRackover <zvirack@gmail.com>2018-09-09 10:45:50 +0300
commitac13e65ae0ce98516e816ba4fcf468d19e750c30 (patch)
treee039a2201ece3358068a659b4bb84b204afd866b /src/nvim/getchar.c
parentcbdbc4f63d68a6b17b9eea5c67130e37d3d0f278 (diff)
downloadrneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.gz
rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.bz2
rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.zip
Remove has_mbytes local to lines changed in parent commit
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 544d518ff1..75d05fc891 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -3657,14 +3657,10 @@ int check_abbr(int c, char_u *ptr, int col, int mincol)
} else {
if (c < ABBR_OFF && (c < ' ' || c > '~'))
tb[j++] = Ctrl_V; /* special char needs CTRL-V */
- if (has_mbyte) {
- /* if ABBR_OFF has been added, remove it here */
- if (c >= ABBR_OFF)
- c -= ABBR_OFF;
- j += utf_char2bytes(c, tb + j);
- } else {
- tb[j++] = (char_u)c;
- }
+ /* 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;
/* insert the last typed char */