diff options
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 3 |
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; |