summaryrefslogtreecommitdiff
path: root/chinese/irssi/files/patch-src::fe-text::gui-entry.c
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2004-04-13 15:31:28 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2004-04-13 15:31:28 +0000
commit074db1cfe2b275c887d675b746218fd864c22152 (patch)
tree2c7a0b60d91d06dd39003f48f8a64e2a04b4c08e /chinese/irssi/files/patch-src::fe-text::gui-entry.c
parentUse /usr/sbin/nologin instead of /sbin/nologin if it exists and is (diff)
- Fix another chinese input string problem.
- Bump version. Submitted by: mhsin via #bsdchat
Diffstat (limited to '')
-rw-r--r--chinese/irssi/files/patch-src::fe-text::gui-entry.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/chinese/irssi/files/patch-src::fe-text::gui-entry.c b/chinese/irssi/files/patch-src::fe-text::gui-entry.c
index 668df76c36bb..a7d5255c6172 100644
--- a/chinese/irssi/files/patch-src::fe-text::gui-entry.c
+++ b/chinese/irssi/files/patch-src::fe-text::gui-entry.c
@@ -1,5 +1,5 @@
--- src/fe-text/gui-entry.c.orig Sun Oct 26 13:45:02 2003
-+++ src/fe-text/gui-entry.c Wed Apr 7 11:08:29 2004
++++ src/fe-text/gui-entry.c Tue Apr 13 23:27:34 2004
@@ -68,28 +68,107 @@
g_free(entry);
}
@@ -172,11 +172,12 @@
end_xpos = entry->xpos + entry->width;
if (xpos > end_xpos)
return;
-@@ -131,7 +215,15 @@
+@@ -131,8 +215,16 @@
p = entry->scrstart + pos < entry->text_len ?
entry->text + entry->scrstart + pos : empty_str;
for (; *p != '\0'; p++) {
- xpos += utf8_width(*p);
+- if (xpos > end_xpos)
+ if (entry->hidden)
+ xpos++;
+ else if(term_type == TERM_TYPE_BIG5)
@@ -186,9 +187,10 @@
+ else
+ xpos++;
+
- if (xpos > end_xpos)
++ if (xpos >= end_xpos)
break;
+ if (entry->hidden)
@@ -285,8 +377,34 @@
if (entry->utf8)
utf16_to_utf8(entry->text, buf);