aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-25 14:19:10 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-26 10:33:01 -0500
commiteab052eca2c255ac4410a00f444e076cf5b43042 (patch)
tree939a03dd43c1604ad4428c3c490ab609612be8ca /src
parent86c1630a1b63d5f5e0eac9235459ec8da10b47ba (diff)
downloadrneovim-eab052eca2c255ac4410a00f444e076cf5b43042.tar.gz
rneovim-eab052eca2c255ac4410a00f444e076cf5b43042.tar.bz2
rneovim-eab052eca2c255ac4410a00f444e076cf5b43042.zip
spell_defs: remove enc_utf8 redundant checks
Diffstat (limited to 'src')
-rw-r--r--src/nvim/spell_defs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h
index e83b21b219..7bc5296239 100644
--- a/src/nvim/spell_defs.h
+++ b/src/nvim/spell_defs.h
@@ -265,15 +265,15 @@ typedef struct trystate_S {
// Multi-byte implementation. For Unicode we can call utf_*(), but don't do
// that for ASCII, because we don't want to use 'casemap' here. Otherwise use
// the "w" library function for characters above 255.
-#define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \
+#define SPELL_TOFOLD(c) ((c) >= 128 ? utf_fold(c) \
: (c) < \
256 ? (int)spelltab.st_fold[c] : (int)towlower(c))
-#define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? mb_toupper(c) \
+#define SPELL_TOUPPER(c) ((c) >= 128 ? mb_toupper(c) \
: (c) < \
256 ? (int)spelltab.st_upper[c] : (int)towupper(c))
-#define SPELL_ISUPPER(c) (enc_utf8 && (c) >= 128 ? mb_isupper(c) \
+#define SPELL_ISUPPER(c) ((c) >= 128 ? mb_isupper(c) \
: (c) < 256 ? spelltab.st_isu[c] : iswupper(c))
// First language that is loaded, start of the linked list of loaded