From 42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 17 Mar 2000 19:27:19 +0000 Subject: manual/10162 --- Completion/Core/_expand | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit 1.4.1