mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Replace utf8_width with Markus Kuhn's wcwidth.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4518 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
24bf34c6ca
commit
a8741bd799
8 changed files with 230 additions and 83 deletions
|
|
@ -218,7 +218,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
|
|||
if (get_utf8_char(&next_ptr, char_len, &chr) < 0)
|
||||
char_len = 1;
|
||||
else
|
||||
char_len = utf8_width(chr);
|
||||
char_len = mk_wcwidth(chr);
|
||||
next_ptr++;
|
||||
}
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
|
|||
if (get_utf8_char(&end, 6, &chr)<0)
|
||||
char_width = 1;
|
||||
else
|
||||
char_width = utf8_width(chr);
|
||||
char_width = mk_wcwidth(chr);
|
||||
} else {
|
||||
if (term_type == TERM_TYPE_BIG5 &&
|
||||
is_big5(end[0], end[1]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue