diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-03-18 17:26:15 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-05 10:01:22 -0300 |
commit | 26206d4cfddb0375b14c47ccf94c480a886f29a1 (patch) | |
tree | d87658310ce35db041fc79e1c6bb85dcfc249262 /src/mbyte.c | |
parent | 5ff29e00a59e90670d3250d3e72502fac601c818 (diff) | |
download | rneovim-26206d4cfddb0375b14c47ccf94c480a886f29a1.tar.gz rneovim-26206d4cfddb0375b14c47ccf94c480a886f29a1.tar.bz2 rneovim-26206d4cfddb0375b14c47ccf94c480a886f29a1.zip |
Remove mblen() check
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 32bf7db413..fff953ebfc 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -526,14 +526,6 @@ char_u * mb_init() else if (enc_dbcs == 0) n = 1; else { -# if defined(MACOS) - /* - * if mblen() is not available, character which MSB is turned on - * are treated as leading byte character. (note : This assumption - * is not always true.) - */ - n = (i & 0x80) ? 2 : 1; -# else char buf[MB_MAXBYTES + 1]; if (i == NUL) /* just in case mblen() can't handle "" */ n = 1; @@ -568,9 +560,7 @@ char_u * mb_init() n = 1; } } -# endif } - mb_bytelen_tab[i] = n; } |