mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 12:11:26 +01:00
19276: fix fallback used to get completer list if the style lookup failed
This commit is contained in:
parent
966afb4622
commit
276fe6ef16
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-12-05 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 19276: Completion/Base/Completer/_prefix: fix fallback used to
|
||||
get completer list if the style lookup failed
|
||||
|
||||
2003-12-04 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Baptiste Daroussin: 19272: Completion/Unix/Command/_chown,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[[ _matcher_num -gt 1 || -z "$SUFFIX" ]] && return 1
|
||||
|
||||
local comp curcontext="$curcontext" tmp suf="$SUFFIX" \
|
||||
_completer _completer_num \
|
||||
_completer \
|
||||
_matcher _c_matcher _matchers _matcher_num
|
||||
|
||||
zstyle -a ":completion:${curcontext}:" completer comp ||
|
||||
|
@ -18,7 +18,7 @@ else
|
|||
fi
|
||||
SUFFIX=''
|
||||
|
||||
_completer_num=1
|
||||
local _completer_num=1
|
||||
|
||||
for tmp in "$comp[@]"; do
|
||||
if [[ "$tmp" = *:-* ]]; then
|
||||
|
|
Loading…
Reference in a new issue