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;
|
||||
if (vim_isupper(c)) {
|
||||
cc = vim_tolower(c);
|
||||
} else if (vim_islower(c)) {
|
||||
cc = vim_toupper(c);
|
||||
if (ASCII_ISUPPER(c)) {
|
||||
cc = TOLOWER_ASC(c);
|
||||
} else if (ASCII_ISLOWER(c)) {
|
||||
cc = TOUPPER_ASC(c);
|
||||
} else {
|
||||
return vim_strchr(s, c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user