diff options
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/macros.h b/src/macros.h index d18813ce2..9310bdd20 100644 --- a/src/macros.h +++ b/src/macros.h @@ -81,13 +81,13 @@ /* * MB_ISLOWER() and MB_ISUPPER() are to be used on multi-byte characters. But - * don't use them for negative values. + * 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) vim_islower(c) +# define MB_ISUPPER(c) vim_isupper(c) +# define MB_TOLOWER(c) vim_tolower(c) +# define MB_TOUPPER(c) vim_toupper(c) #else # define MB_ISLOWER(c) islower(c) # define MB_ISUPPER(c) isupper(c) |