summaryrefslogtreecommitdiffstats
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:27:19 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:27:19 +0000
commit42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e (patch)
treee17ee799984373586c7cf2ea35c046c439cffe89 /Completion
parentzsh-workers/10165 (diff)
downloadzsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar.gz
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar.bz2
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar.lz
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar.xz
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.tar.zst
zsh-42e39ffadbd752a84b3e94151c3bdc92b5f5dd9e.zip
manual/10162
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_expand4
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.