BIG5 stuff is used only if term_type is big5

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3135 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-10-26 05:31:19 +00:00 committed by cras
commit b2d07ffd1d
3 changed files with 13 additions and 21 deletions

View file

@ -200,7 +200,8 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
if (!view->utf8) {
/* MH */
if (ptr[1] == '\0' || !is_big5(ptr[0], ptr[1]))
if (term_type != TERM_TYPE_BIG5 ||
ptr[1] == '\0' || !is_big5(ptr[0], ptr[1]))
char_len = 1;
else
char_len = 2;