Copy QIPREFIX/QISUFFIX.

This commit is contained in:
Sven Wischnowsky 2000-04-04 09:52:56 +00:00
parent a1ea0e1eea
commit 7b016b8cd8
2 changed files with 7 additions and 2 deletions

View file

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

View file

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