mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
fix width of byte codepoints
This commit is contained in:
parent
deaa1da55e
commit
288f220f87
@ -220,7 +220,7 @@ CODE:
|
|||||||
} else if (term_type != TERM_TYPE_BIG5 ||
|
} else if (term_type != TERM_TYPE_BIG5 ||
|
||||||
c[1] == '\0' ||
|
c[1] == '\0' ||
|
||||||
!is_big5((unsigned char) c[0], (unsigned char) c[1])) {
|
!is_big5((unsigned char) c[0], (unsigned char) c[1])) {
|
||||||
RETVAL = 1;
|
RETVAL = i_wcwidth((unsigned char) *c);
|
||||||
} else {
|
} else {
|
||||||
RETVAL = 2;
|
RETVAL = 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user