aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 12:40:46 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-11-14 12:49:12 +0100
commit0039ba04b0c907a6d23a0c07ed272f38c58c9739 (patch)
tree79b2dd9535e52d819fbddf2d02f3aff0db2ccc34 /src/nvim/syntax.c
parent9f27e6cbe70643e7b26e0b4f024fad3f75b1950c (diff)
downloadrneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.tar.gz
rneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.tar.bz2
rneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.zip
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index d134870138..504d1cd16e 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -4246,7 +4246,7 @@ static char_u *get_syn_options(char_u *arg, syn_opt_arg_T *opt, int *conceal_cha
} else if (flagtab[fidx].argtype == 11 && arg[5] == '=') {
// cchar=?
*conceal_char = utf_ptr2char(arg + 6);
- arg += mb_ptr2len(arg + 6) - 1;
+ arg += utfc_ptr2len(arg + 6) - 1;
if (!vim_isprintc_strict(*conceal_char)) {
emsg(_("E844: invalid cchar value"));
return NULL;
@@ -4483,7 +4483,7 @@ static void syn_cmd_keyword(exarg_T *eap, int syncing)
kw = p + 1;
break; // skip over the "]"
}
- const int l = (*mb_ptr2len)(p + 1);
+ const int l = utfc_ptr2len(p + 1);
memmove(p, p + 1, l);
p += l;