diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_expand | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand index eee3f9b81..74e8ea530 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -7,6 +7,8 @@ # the expansions done produce no result or do not change the original # word from the line. +setopt localoptions nullglob + [[ _matcher_num -gt 1 ]] && return 1 local exp word="$PREFIX$SUFFIX" sort expr expl subd suf=" " @@ -42,7 +44,7 @@ subd=("$exp[@]") zstyle -s ":completion:${curcontext}:" glob expr && [[ "${(e):-\$[$expr]}" -eq 1 ]] && - exp=( ${~exp}(N) ) + exp=( ${~exp} ) # If we don't have any expansions or only one and that is the same # as the original string, we let other completers run. |