mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
regexp: Do not use locale-dependent functions in cstrchr
This commit is contained in:
parent
ac1cb1c72f
commit
caeff6e1af
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user