summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-14 22:05:40 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-14 22:05:40 +0000
commit8348ea624c4b90b119f7102f379ff25c3ff4de97 (patch)
tree254b1d0426570f487ca557e668c86c3806b98c6c /src/macros.h
parent9f30f50471678a0a986c30b50dce705bdcc991dc (diff)
downloadvim-git-8348ea624c4b90b119f7102f379ff25c3ff4de97.tar.gz
updated for version 7.0085
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/macros.h b/src/macros.h
index f7bb10dca..07b02d707 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -84,10 +84,10 @@
* don't use them for negative values.
*/
#ifdef FEAT_MBYTE
-# define MB_ISLOWER(c) (enc_utf8 && (c) > 0x80 ? utf_islower(c) : (has_mbyte && c > 255 ? FALSE : islower(c)))
-# define MB_ISUPPER(c) (enc_utf8 && (c) > 0x80 ? utf_isupper(c) : (has_mbyte && c > 255 ? FALSE : isupper(c)))
-# define MB_TOLOWER(c) (enc_utf8 && (c) > 0x80 ? utf_tolower(c) : (has_mbyte && c > 255 ? c : TOLOWER_LOC(c)))
-# define MB_TOUPPER(c) (enc_utf8 && (c) > 0x80 ? utf_toupper(c) : (has_mbyte && c > 255 ? c : TOUPPER_LOC(c)))
+# define MB_ISLOWER(c) (enc_utf8 && (c) >= 0x80 ? utf_islower(c) : (has_mbyte && c > 255 ? FALSE : islower(c)))
+# define MB_ISUPPER(c) (enc_utf8 && (c) >= 0x80 ? utf_isupper(c) : (has_mbyte && c > 255 ? FALSE : isupper(c)))
+# define MB_TOLOWER(c) (enc_utf8 && (c) >= 0x80 ? utf_tolower(c) : (has_mbyte && c > 255 ? c : TOLOWER_LOC(c)))
+# define MB_TOUPPER(c) (enc_utf8 && (c) >= 0x80 ? utf_toupper(c) : (has_mbyte && c > 255 ? c : TOUPPER_LOC(c)))
#else
# define MB_ISLOWER(c) islower(c)
# define MB_ISUPPER(c) isupper(c)