summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-04 09:52:56 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-04 09:52:56 +0000
commit7b016b8cd80c60658c92da63ea500998f299d77b (patch)
tree73d8187827cf6b902e0553417e421c4b10f2380b /Src/Zle
parenta1ea0e1eea6411f1713595ef5f76873b3f88ba07 (diff)
downloadzsh-7b016b8cd80c60658c92da63ea500998f299d77b.tar.gz
zsh-7b016b8cd80c60658c92da63ea500998f299d77b.tar.xz
zsh-7b016b8cd80c60658c92da63ea500998f299d77b.zip
Copy QIPREFIX/QISUFFIX.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 3cc080cac..3260ea11e 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -1982,7 +1982,7 @@ add_match_data(int alt, char *str, Cline line,
 	    sl = tsl;
 	}
 	if (qisl) {
-	    Cline qsl = bld_parts(qisuf, qisl, qisl, NULL);
+	    Cline qsl = bld_parts(dupstring(qisuf), qisl, qisl, NULL);
 
 	    qsl->flags |= CLF_SUF;
 	    qsl->suffix = qsl->prefix;
@@ -2065,7 +2065,7 @@ add_match_data(int alt, char *str, Cline line,
 	    line = p;
 	}
 	if (qipl) {
-	    Cline lp, p = bld_parts(qipre, qipl, qipl, &lp);
+	    Cline lp, p = bld_parts(dupstring(qipre), qipl, qipl, &lp);
 
 	    lp->next = line;
 	    line = p;