aboutsummaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spell.c b/src/spell.c
index d349b9fe80..f684e5b2b0 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -8685,13 +8685,13 @@ void init_spell_chartab(void)
} else {
/* Rough guess: use locale-dependent library functions. */
for (i = 128; i < 256; ++i) {
- if (MB_ISUPPER(i)) {
+ if (vim_isupper(i)) {
spelltab.st_isw[i] = TRUE;
spelltab.st_isu[i] = TRUE;
- spelltab.st_fold[i] = MB_TOLOWER(i);
- } else if (MB_ISLOWER(i)) {
+ spelltab.st_fold[i] = vim_tolower(i);
+ } else if (vim_islower(i)) {
spelltab.st_isw[i] = TRUE;
- spelltab.st_upper[i] = MB_TOUPPER(i);
+ spelltab.st_upper[i] = vim_toupper(i);
}
}
}