1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

make expand-word not always restore the command line (3940)

This commit is contained in:
Sven Wischnowsky 2001-06-25 09:32:21 +00:00
parent 50f88338e6
commit bbd2a98f41
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-06-25 Sven Wischnowsky <wischnow@zsh.org>
* user/3940: Src/Zle/zle_tricky.c: make expand-word not always
restore the command line
2001-06-24 Bart Schaefer <schaefer@zsh.org>
* 15060: Test/A02alias.ztst: Change expected return value to

View file

@ -752,7 +752,8 @@ docomplete(int lst)
inststr(x);
} else if (COMP_ISEXPAND(lst)) {
/* Do expansion. */
char *ol = (olst == COMP_EXPAND_COMPLETE) ?
char *ol = (olst == COMP_EXPAND ||
olst == COMP_EXPAND_COMPLETE) ?
dupstring((char *)line) : (char *)line;
int ocs = cs, ne = noerrs;