From 0039ba04b0c907a6d23a0c07ed272f38c58c9739 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 12:40:46 +0100 Subject: refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len --- src/nvim/spellfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spellfile.c') diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index cddf3fe855..a267164d0a 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -2504,7 +2504,7 @@ static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname) // be empty or start with the same letter. if (aff_entry->ae_chop != NULL && aff_entry->ae_add != NULL - && aff_entry->ae_chop[(*mb_ptr2len)(aff_entry->ae_chop)] == + && aff_entry->ae_chop[utfc_ptr2len(aff_entry->ae_chop)] == NUL) { int c, c_up; -- cgit From 71a4d275dc3fa71c656c0d2423f60904822aa223 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 12:48:42 +0100 Subject: refactor(multibyte): eliminate mb_char2len alias for utf_char2len --- src/nvim/spellfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/spellfile.c') diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index a267164d0a..1227cd5adc 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -5858,8 +5858,8 @@ static void set_map_str(slang_T *lp, char_u *map) // the hash table. Each entry is the char, a NUL the headchar and // a NUL. if (c >= 256) { - int cl = mb_char2len(c); - int headcl = mb_char2len(headc); + int cl = utf_char2len(c); + int headcl = utf_char2len(headc); char_u *b; hash_T hash; hashitem_T *hi; -- cgit