mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
manual/10162
This commit is contained in:
parent
3d81d10195
commit
42e39ffadb
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue