1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-09-30 19:14:12 -04:00

Handle wide character display based on wcwidth implementation (UTF-16 ready).

This commit is contained in:
2019-11-06 11:24:18 +08:00
parent d18cfd2925
commit b0362969a3
4 changed files with 20 additions and 10 deletions

View File

@@ -340,7 +340,7 @@ static unsigned int utf8_disp_len( const char *s) {
unicode_t c ;
s += utf8_to_unicode( s, 0, 4, &c) ;
len += 1 ; /* single width unicode for now */
len += utf8_width( c) ;
}
return len ;