mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
regexp: Do not use locale-dependent functions in cstrchr
This commit is contained in:
@@ -6309,10 +6309,10 @@ static inline char_u *cstrchr(const char_u *const s, const int c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int cc;
|
int cc;
|
||||||
if (vim_isupper(c)) {
|
if (ASCII_ISUPPER(c)) {
|
||||||
cc = vim_tolower(c);
|
cc = TOLOWER_ASC(c);
|
||||||
} else if (vim_islower(c)) {
|
} else if (ASCII_ISLOWER(c)) {
|
||||||
cc = vim_toupper(c);
|
cc = TOUPPER_ASC(c);
|
||||||
} else {
|
} else {
|
||||||
return vim_strchr(s, c);
|
return vim_strchr(s, c);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user