1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/chinese/irssi/files/patch-src::fe-text::textbuffer-view.c
Vanilla I. Shu 00c9059f38 Forgotten to add patch-files.
Submitted by:	Kuang-che Wu <kcwu@kcwu.homeip.net>
2003-12-13 20:59:11 +00:00

19 lines
455 B
C

--- src/fe-text/textbuffer-view.c.orig Sun Oct 26 13:45:02 2003
+++ src/fe-text/textbuffer-view.c Sun Dec 14 01:54:28 2003
@@ -435,7 +435,14 @@
unichar chr = get_utf8_char(&end, 6);
char_width = utf8_width(chr);
} else {
- char_width = 1;
+ if(term_type==TERM_TYPE_BIG5) {
+ if(is_big5(end[0],end[1]))
+ char_width=2;
+ else
+ char_width=1;
+ } else
+ char_width = 1;
+ end+=char_width-1;
}
xpos += char_width;