mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1176,14 +1176,14 @@ void ex_match(exarg_T *eap)
|
||||
}
|
||||
|
||||
if (ends_excmd(*eap->arg)) {
|
||||
end = eap->arg;
|
||||
end = (char_u *)eap->arg;
|
||||
} else if ((STRNICMP(eap->arg, "none", 4) == 0
|
||||
&& (ascii_iswhite(eap->arg[4]) || ends_excmd(eap->arg[4])))) {
|
||||
end = eap->arg + 4;
|
||||
end = (char_u *)eap->arg + 4;
|
||||
} else {
|
||||
p = skiptowhite(eap->arg);
|
||||
p = skiptowhite((char_u *)eap->arg);
|
||||
if (!eap->skip) {
|
||||
g = vim_strnsave(eap->arg, (size_t)(p - eap->arg));
|
||||
g = vim_strnsave((char_u *)eap->arg, (size_t)(p - (char_u *)eap->arg));
|
||||
}
|
||||
p = skipwhite(p);
|
||||
if (*p == NUL) {
|
||||
@@ -1213,5 +1213,5 @@ void ex_match(exarg_T *eap)
|
||||
*end = (char_u)c;
|
||||
}
|
||||
}
|
||||
eap->nextcmd = find_nextcmd(end);
|
||||
eap->nextcmd = (char *)find_nextcmd(end);
|
||||
}
|
||||
|
Reference in New Issue
Block a user