aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-12-05 16:51:31 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-12-05 16:51:31 +0000
commitacf07cae911b726de33e6c6d03cdc56221c73c40 (patch)
tree6ff5d91c37c2a6b9863e5f3f9126db761a0644bb
parent4ba52447aaf86efc5ef906e200f466935c194705 (diff)
downloadzsh-acf07cae911b726de33e6c6d03cdc56221c73c40.tar.gz
zsh-acf07cae911b726de33e6c6d03cdc56221c73c40.tar.xz
zsh-acf07cae911b726de33e6c6d03cdc56221c73c40.zip
19276: fix fallback used to get completer list if the style lookup failed
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/Completer/_prefix4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c5c30f1e..32e9b3e9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-03 Peter Stephenson <pws@csr.com>
* 19269: Src/pattern.c, Misc/globtests, Test/D02glob.ztst:
diff --git a/Completion/Base/Completer/_prefix b/Completion/Base/Completer/_prefix
index a198f4cfb..c17b381e3 100644
--- a/Completion/Base/Completer/_prefix
+++ b/Completion/Base/Completer/_prefix
@@ -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