aboutsummaryrefslogtreecommitdiff
path: root/shells/zsh+euc_hack
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-03-24 19:48:12 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-03-24 19:48:12 +0000
commit03d8d03e83262baccc8efc6d25465a38d65d8dc3 (patch)
treef2b1177ba095e0f39f26b93feeb43c2ede1c0c8c /shells/zsh+euc_hack
parentdf96daf5761726455cc5381a4bbbdb97308e3d38 (diff)
downloadports-03d8d03e83262baccc8efc6d25465a38d65d8dc3.tar.gz
ports-03d8d03e83262baccc8efc6d25465a38d65d8dc3.zip
Add a patch to fix a minor bug with deleting a multibyte character at
BOL.
Notes
Notes: svn path=/head/; revision=105140
Diffstat (limited to 'shells/zsh+euc_hack')
-rw-r--r--shells/zsh+euc_hack/Makefile1
-rw-r--r--shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c17
2 files changed, 18 insertions, 0 deletions
diff --git a/shells/zsh+euc_hack/Makefile b/shells/zsh+euc_hack/Makefile
index 1b8e3827d76c..210437c85ffe 100644
--- a/shells/zsh+euc_hack/Makefile
+++ b/shells/zsh+euc_hack/Makefile
@@ -8,6 +8,7 @@
MASTERDIR= ${.CURDIR}/../zsh
PKGNAMESUFFIX= +euc_hack
+PORTREVISION= 1
MAINTAINER= knu@FreeBSD.org
COMMENT= The Z shell with EUC encoding support
diff --git a/shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c b/shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c
new file mode 100644
index 000000000000..e19b39fefcea
--- /dev/null
+++ b/shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c
@@ -0,0 +1,17 @@
+--- Src/Zle/zle_misc.c.orig Mon Sep 10 19:48:51 2001
++++ Src/Zle/zle_misc.c Thu Mar 25 04:36:46 2004
+@@ -94,6 +94,14 @@
+ return ret;
+ }
+ if (cs + zmult <= ll) {
++#ifdef ZSH_EUC
++ if (locale_is_euc) {
++ if (zmult == 1 &&
++ _mbmap_euc[line[cs]] & _MB1 &&
++ _mbmap_euc[line[cs+1]] & _MB2)
++ cs += 1;
++ }
++#endif
+ cs += zmult;
+ backdel(zmult);
+ return 0;