diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-25 21:56:30 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-25 21:56:30 +0000 |
commit | a8741bd799d1e3aea02ad63329c71acfa03c67fb (patch) | |
tree | 2a47a33ff4973ff7e2036184f6de154f5efb2fea /src/fe-text/textbuffer-view.c | |
parent | 24bf34c6ca0118041addd8a3de060bae2246a49d (diff) | |
download | irssi-a8741bd799d1e3aea02ad63329c71acfa03c67fb.zip |
Replace utf8_width with Markus Kuhn's wcwidth.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4518 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-view.c')
-rw-r--r-- | src/fe-text/textbuffer-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index 42832b0d..80f30438 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -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])) |