summaryrefslogtreecommitdiff
path: root/chinese/irssi
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2001-11-17 04:29:08 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2001-11-17 04:29:08 +0000
commiteda7fc70a808a4cb32b039795373173ba4ea0c54 (patch)
tree4738bdb6693605b525581145bb445c7b4d2f42e9 /chinese/irssi
parentFix to make vc-backup file only if vc-make-backup-files is t. (diff)
Add another patch for BIG5 cursor movement, and bump version.
Submitted by: mhsin@mhsin.org
Notes
Notes: svn path=/head/; revision=50135
Diffstat (limited to 'chinese/irssi')
-rw-r--r--chinese/irssi/Makefile1
-rw-r--r--chinese/irssi/files/patch-src_fe-text_gui-entry.c30
2 files changed, 25 insertions, 6 deletions
diff --git a/chinese/irssi/Makefile b/chinese/irssi/Makefile
index 47c2faab6556..58fe5bab2417 100644
--- a/chinese/irssi/Makefile
+++ b/chinese/irssi/Makefile
@@ -12,6 +12,7 @@ EXTRA_PATCHES= ${.CURDIR}/files/patch-config.h.in \
${.CURDIR}/files/patch-src_fe-text_screen.h \
${.CURDIR}/files/patch-src_fe-text_wrap.c
+PORTREVISION= 1
CATEGORIES= chinese
MAINTAINER= vanilla@FreeBSD.org
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 d12b49a489fc..1b349680a57e 100644
--- a/chinese/irssi/files/patch-src_fe-text_gui-entry.c
+++ b/chinese/irssi/files/patch-src_fe-text_gui-entry.c
@@ -1,8 +1,8 @@
--- src/fe-text/gui-entry.c.orig Sun Mar 4 02:04:10 2001
-+++ src/fe-text/gui-entry.c Thu Nov 1 23:38:28 2001
-@@ -148,10 +148,35 @@
- entry_update();
- }
++++ src/fe-text/gui-entry.c Mon Nov 5 01:40:11 2001
+@@ -29,6 +29,26 @@
+ static int prompt_hidden;
+ static char *prompt;
+#ifdef WANT_BIG5
+int gui_is_big5(char *str, int pos)
@@ -24,7 +24,25 @@
+}
+#endif WANT_BIG5
+
- void gui_entry_erase(int size)
+ static void entry_screenpos(void)
+ {
+ if (pos-scrstart < COLS-2-promptlen && pos-scrstart > 0) {
+@@ -42,6 +62,14 @@
+ } else {
+ scrpos = (COLS-promptlen)*2/3;
+ scrstart = pos-scrpos;
++#ifdef WANT_BIG5
++ if((scrstart > 0) &&
++ gui_is_big5(entry->str, scrstart - 1))
++ {
++ scrstart --;
++ scrpos ++;
++ }
++#endif WANT_BIG5
+ }
+ }
+
+@@ -152,6 +180,11 @@
{
if (pos < size) return;
@@ -36,7 +54,7 @@
pos -= size;
g_string_erase(entry, pos, size);
-@@ -217,6 +242,13 @@
+@@ -217,6 +250,13 @@
void gui_entry_move_pos(int p)
{