diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-04 09:52:56 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-04 09:52:56 +0000 |
commit | 7b016b8cd80c60658c92da63ea500998f299d77b (patch) | |
tree | 73d8187827cf6b902e0553417e421c4b10f2380b | |
parent | a1ea0e1eea6411f1713595ef5f76873b3f88ba07 (diff) | |
download | zsh-7b016b8cd80c60658c92da63ea500998f299d77b.tar.gz zsh-7b016b8cd80c60658c92da63ea500998f299d77b.tar.xz zsh-7b016b8cd80c60658c92da63ea500998f299d77b.zip |
Copy QIPREFIX/QISUFFIX.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/compcore.c | 4 |
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; |