Fix UTF-8 character corruption every 32kb of text buffer

This commit is contained in:
Kuang-che Wu 2014-01-08 15:03:25 +01:00 committed by Ailin Nemui
commit fc4a4d2471
2 changed files with 13 additions and 0 deletions

View file

@ -12,5 +12,6 @@
int mk_wcwidth(unichar c);
#define unichar_isprint(c) (((c) & ~0x80) >= 32)
#define is_utf8_leading(c) (((c) & 0xc0) != 0x80)
#endif