diff options
author | vanilla <vanilla@FreeBSD.org> | 2001-11-17 12:29:08 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2001-11-17 12:29:08 +0800 |
commit | 9b6650dfe9bf4b407afed6859b341ce89a036615 (patch) | |
tree | d276bb79235177dd0e83565ff5550d3765491dac | |
parent | 0abcf6cb9341220fd4aa23b67c4273ed8c653f9e (diff) | |
download | freebsd-ports-gnome-9b6650dfe9bf4b407afed6859b341ce89a036615.tar.gz freebsd-ports-gnome-9b6650dfe9bf4b407afed6859b341ce89a036615.tar.zst freebsd-ports-gnome-9b6650dfe9bf4b407afed6859b341ce89a036615.zip |
Add another patch for BIG5 cursor movement, and bump version.
Submitted by: mhsin@mhsin.org
-rw-r--r-- | chinese/irssi/Makefile | 1 | ||||
-rw-r--r-- | chinese/irssi/files/patch-src_fe-text_gui-entry.c | 30 | ||||
-rw-r--r-- | irc/irssi-devel/Makefile | 2 | ||||
-rw-r--r-- | irc/irssi/Makefile | 2 |
4 files changed, 27 insertions, 8 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) { diff --git a/irc/irssi-devel/Makefile b/irc/irssi-devel/Makefile index 981bd44971e6..d27f8b6639e1 100644 --- a/irc/irssi-devel/Makefile +++ b/irc/irssi-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= irssi PORTVERSION= 0.7.98.4 -PORTREVISION= 0 +PORTREVISION?= 0 CATEGORIES+= irc ipv6 # `+=' is for slave ports MASTER_SITES= http://irssi.org/files/ diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile index 981bd44971e6..d27f8b6639e1 100644 --- a/irc/irssi/Makefile +++ b/irc/irssi/Makefile @@ -7,7 +7,7 @@ PORTNAME= irssi PORTVERSION= 0.7.98.4 -PORTREVISION= 0 +PORTREVISION?= 0 CATEGORIES+= irc ipv6 # `+=' is for slave ports MASTER_SITES= http://irssi.org/files/ |