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

@ -76,6 +76,9 @@ static int _fix_big5_pos(unichar *p, int pos, int direct)
{
int newpos;
if (term_type != TERM_TYPE_BIG5)
return pos;
for (newpos = 0; newpos < pos && p[newpos] != 0; ) {
if (is_big5(p[newpos], p[newpos+1]))
newpos += 2;