summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-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}##([^:\\]|\\?)##}"