about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compcore.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2bd9c2c3f..8ff0526dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-03  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
+
+	* 10456: Src/Zle/compcore.c: Copy QIPREFIX/QISUFFIX.
+
 2000-04-04  Andrew Main  <zefram@zsh.org>
 
 	* 10444: Src/lex.c, Src/pattern.c: Insist on proper syntax
@@ -5,6 +9,7 @@
 	"echo 1<2-3>" would lose the "1".
 
 2000-04-03  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
+
 	* 10408: Completion/Core/_path_files: better quoting
 
 	* 10409: Completion/Core/_path_files: completion after ~+<num>
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;