summary refs log tree commit diff
path: root/Completion/Base/Utility/_describe
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-06 07:59:50 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-06 07:59:50 +0000
commit5c93cbc7e922f89be23469798c3f6da9a313b00e (patch)
tree99df6fa625b6a152309dc7ba6633a4b6c6fb7de5 /Completion/Base/Utility/_describe
parentfed88cf8be33c787aa2ec6ca0886b1298519b269 (diff)
downloadzsh-5c93cbc7e922f89be23469798c3f6da9a313b00e.tar.gz
zsh-5c93cbc7e922f89be23469798c3f6da9a313b00e.tar.xz
zsh-5c93cbc7e922f89be23469798c3f6da9a313b00e.zip
fix _arguments' -s option (17078)
Diffstat (limited to 'Completion/Base/Utility/_describe')
-rw-r--r--Completion/Base/Utility/_describe6
1 files changed, 2 insertions, 4 deletions
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}##([^:\\]|\\?)##}"