diff options
author | Wayne Davison <wayne@opencoder.net> | 2019-11-26 16:26:15 -0800 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2019-11-26 16:27:51 -0800 |
commit | 95882efbf7b1c87eb55ccced3af615b40fa14787 (patch) | |
tree | b8a07d1fe85d7e68e645be3f31bfd6505d9466a2 /Completion | |
parent | 8aa84bd5fc4402a4118481388640fd74b0aeb321 (diff) | |
download | zsh-95882efbf7b1c87eb55ccced3af615b40fa14787.tar.gz zsh-95882efbf7b1c87eb55ccced3af615b40fa14787.tar.xz zsh-95882efbf7b1c87eb55ccced3af615b40fa14787.zip |
44912: more quoting fixes in _expand
Don't set done_quote=1 if the glob result is empty.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Completer/_expand | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/Completer/_expand b/Completion/Base/Completer/_expand index f4909826a..def522a76 100644 --- a/Completion/Base/Completer/_expand +++ b/Completion/Base/Completer/_expand @@ -108,7 +108,7 @@ integer done_quote local orig_exp=$exp if [[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob; then eval 'exp=( ${~exp//(#b)\\([ \"'"\'"' -])/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null && done_quote=1 +])/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null && (( $#exp )) && done_quote=1 fi # If the globbing failed, or we didn't try globbing, we'll do # it again without the "~" so globbing is simply omitted. |