1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

Fix CJK length on utf8 mode.

PR:		ports/101126
Submitted by:	mhsin at mhsin.com
This commit is contained in:
Vanilla I. Shu 2006-08-01 01:28:51 +00:00
parent 9bfbb8385b
commit de00e5a0fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169269
2 changed files with 14 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
#
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= chinese
MAINTAINER= vanilla@FreeBSD.org
@ -13,6 +13,7 @@ COMMENT= A zh-tw cursor movement friendly, wrapping clean irssi
MASTERDIR= ${.CURDIR}/../../irc/irssi
EXTRA_PATCHES= ${.CURDIR}/files/patch-irssi.conf
EXTRA_PATCHES= ${.CURDIR}/files/patch-irssi.conf \
${.CURDIR}/files/patch-utf8_break
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,11 @@
--- src/fe-text/textbuffer-view.c.orig Mon Jul 31 06:28:09 2006
+++ src/fe-text/textbuffer-view.c Mon Jul 31 06:28:19 2006
@@ -255,7 +255,7 @@
continue;
}
- if (!view->utf8 && char_len > 1) {
+ if (char_len > 1) {
last_space = xpos;
last_space_ptr = next_ptr;
last_color = color;