mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -3289,7 +3289,7 @@ void spell_dump_compl(char_u *pat, int ic, Direction *dir, int dumpflags_arg)
|
||||
// ignore case...
|
||||
assert(depth >= 0);
|
||||
if (depth <= patlen
|
||||
&& mb_strnicmp(word, pat, (size_t)depth) != 0) {
|
||||
&& mb_strnicmp((char *)word, (char *)pat, (size_t)depth) != 0) {
|
||||
depth--;
|
||||
}
|
||||
}
|
||||
@@ -3371,7 +3371,7 @@ static void dump_word(slang_T *slang, char_u *word, char_u *pat, Direction *dir,
|
||||
|
||||
ml_append(lnum, (char *)p, (colnr_T)0, false);
|
||||
} else if (((dumpflags & DUMPFLAG_ICASE)
|
||||
? mb_strnicmp(p, pat, STRLEN(pat)) == 0
|
||||
? mb_strnicmp((char *)p, (char *)pat, STRLEN(pat)) == 0
|
||||
: STRNCMP(p, pat, STRLEN(pat)) == 0)
|
||||
&& ins_compl_add_infercase(p, (int)STRLEN(p),
|
||||
p_ic, NULL, *dir, false) == OK) {
|
||||
|
Reference in New Issue
Block a user