summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-01-18 16:41:36 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-01-18 16:41:36 +0000
commitdae7a27fff239e97c5862b2f434284ec4d0d55b5 (patch)
tree6ed5356ff9afb3a01200da9acc76fe98288b7776 /Src/Zle
parent188da2f53384d241dfb0c2873b554950d91593ec (diff)
downloadzsh-dae7a27fff239e97c5862b2f434284ec4d0d55b5.tar.gz
zsh-dae7a27fff239e97c5862b2f434284ec4d0d55b5.tar.xz
zsh-dae7a27fff239e97c5862b2f434284ec4d0d55b5.zip
24406: use deep copy of Cline structure to avoid recursion problem
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compmatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index 6dff2243e..bf9d2cb0d 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -2003,8 +2003,8 @@ sub_join(Cline a, Cline b, Cline e, int anew)
 	ca = a->prefix;
 
 	while (n) {
-	    e->prefix = cp_cline(n, 0);
-	    a->prefix = cp_cline(ca, 0);
+	    e->prefix = cp_cline(n, 1);
+	    a->prefix = cp_cline(ca, 1);
 
 	    if (anew) {
 		int f = e->flags;