about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-25 09:32:21 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-25 09:32:21 +0000
commitbbd2a98f4171a474cec10f58ff80df197fae6491 (patch)
tree469779004993c123c1612fbd8176a2fbfcca8b98 /Src
parent50f88338e67084fa31be6843d47bd4d675458e7a (diff)
downloadzsh-bbd2a98f4171a474cec10f58ff80df197fae6491.tar.gz
zsh-bbd2a98f4171a474cec10f58ff80df197fae6491.tar.xz
zsh-bbd2a98f4171a474cec10f58ff80df197fae6491.zip
make expand-word not always restore the command line (3940)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_tricky.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 542b50381..515fb9e97 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -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;