diff options
author | vanilla <vanilla@FreeBSD.org> | 2001-11-17 04:29:08 +0000 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2001-11-17 04:29:08 +0000 |
commit | 9b6650dfe9bf4b407afed6859b341ce89a036615 (patch) | |
tree | d276bb79235177dd0e83565ff5550d3765491dac /chinese/irssi | |
parent | 0abcf6cb9341220fd4aa23b67c4273ed8c653f9e (diff) | |
download | FreeBSD-ports-9b6650dfe9bf4b407afed6859b341ce89a036615.zip FreeBSD-ports-9b6650dfe9bf4b407afed6859b341ce89a036615.tar.gz |
Add another patch for BIG5 cursor movement, and bump version.
Submitted by: mhsin@mhsin.org
Diffstat (limited to 'chinese/irssi')
-rw-r--r-- | chinese/irssi/Makefile | 1 | ||||
-rw-r--r-- | chinese/irssi/files/patch-src_fe-text_gui-entry.c | 30 |
2 files changed, 25 insertions, 6 deletions
diff --git a/chinese/irssi/Makefile b/chinese/irssi/Makefile index 47c2faa..58fe5ba 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 d12b49a..1b34968 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) { |