aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 13:44:18 +0100
committerGitHub <noreply@github.com>2021-11-14 13:44:18 +0100
commit27f8b04f1791c29825bbe4b10e4a8db9472ecaee (patch)
tree1d8e2cd43baaca7f94ca08689b11231a128ec7cc /src/nvim/spellfile.c
parentee3a58d42e7fce666eef570db6f2944c29303d98 (diff)
parent71a4d275dc3fa71c656c0d2423f60904822aa223 (diff)
downloadrneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.gz
rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.bz2
rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.zip
Merge pull request #16315 from bfredl/multibytes
refactor(multibyte): eliminate mb_* aliases for utf_* functions
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r--src/nvim/spellfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index cddf3fe855..1227cd5adc 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;
@@ -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;