summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/Utility/_describe6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 51baa9424..93577efac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-06  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 17078: Completion/Base/Utility/_describe: fix _arguments' -s
+	option
+
 2002-05-03  Oliver Kiddle  <opk@zsh.org>
 
 	* 17072; based on 17066 (Danek Duvall):
diff --git a/Completion/Base/Utility/_describe b/Completion/Base/Utility/_describe
index fea3ee569..b215b6279 100644
--- a/Completion/Base/Utility/_describe
+++ b/Completion/Base/Utility/_describe
@@ -66,7 +66,7 @@ while _tags; do
         if [[ "$1" = (|-*) ]]; then
           _mats=
         else
-          _matss="_a_$_try$_i"
+          _mats="_a_$_try$_i"
           if [[ "$1" = \(*\) ]]; then
             eval local "_a_$_try$_i;_a_$_try$_i"'='$1
           else
@@ -87,9 +87,7 @@ while _tags; do
     
         if [[ -n $_mats ]]; then
           compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
-                  "${(@M)${(@P)_strs}##([^:\\]|\\?)##}"
-          compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_mats - \
-                  "${(@M)${(@P)_strs}##([^:\\]|\\?)##}"
+                  "${(@M)${(@P)_mats}##([^:\\]|\\?)##}"
         else
           compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \
                   "${(@M)${(@P)_strs}##([^:\\]|\\?)##}"