mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
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:
parent
7eb2fc70e3
commit
b2d07ffd1d
3 changed files with 13 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue