Add a patch to fix a minor bug with deleting a multibyte character at

BOL.
This commit is contained in:
Akinori MUSHA 2004-03-24 19:48:12 +00:00
parent df96daf576
commit 03d8d03e83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105140
2 changed files with 18 additions and 0 deletions

View file

@ -8,6 +8,7 @@
MASTERDIR= ${.CURDIR}/../zsh
PKGNAMESUFFIX= +euc_hack
PORTREVISION= 1
MAINTAINER= knu@FreeBSD.org
COMMENT= The Z shell with EUC encoding support

View file

@ -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;