aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-12 02:01:07 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-12 18:12:05 -0500
commit93c18867a0e79bf71bffa9f8ce533f224d759ee5 (patch)
tree9f3e0ae576c36e8b361aea782e69ed6d6edb5b6b /src/nvim/syntax.c
parentf494516ccdc3284bcafadf36703644750a4383e4 (diff)
downloadrneovim-93c18867a0e79bf71bffa9f8ce533f224d759ee5.tar.gz
rneovim-93c18867a0e79bf71bffa9f8ce533f224d759ee5.tar.bz2
rneovim-93c18867a0e79bf71bffa9f8ce533f224d759ee5.zip
vim-patch:8.1.0810: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4. https://github.com/vim/vim/commit/264b74fa545edfb92c0d7d08a02c26331cc5b168
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index ec6accd473..2f8b2989f5 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -2960,11 +2960,7 @@ static int check_keyword_id(
char_u *const kwp = line + startcol;
int kwlen = 0;
do {
- if (has_mbyte) {
- kwlen += (*mb_ptr2len)(kwp + kwlen);
- } else {
- kwlen++;
- }
+ kwlen += utfc_ptr2len(kwp + kwlen);
} while (vim_iswordp_buf(kwp + kwlen, syn_buf));
if (kwlen > MAXKEYWLEN) {