aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index 175aa1b970..893089f06d 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -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);
}