mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Add a patch to fix a minor bug with deleting a multibyte character at
BOL.
This commit is contained in:
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
|
@ -8,6 +8,7 @@
|
|||
MASTERDIR= ${.CURDIR}/../zsh
|
||||
|
||||
PKGNAMESUFFIX= +euc_hack
|
||||
PORTREVISION= 1
|
||||
|
||||
MAINTAINER= knu@FreeBSD.org
|
||||
COMMENT= The Z shell with EUC encoding support
|
||||
|
|
17
shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c
Normal file
17
shells/zsh+euc_hack/files/patch-Src::Zle::zle_misc.c
Normal 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;
|
Loading…
Add table
Reference in a new issue