Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _argument -s



Hi

Oliver pointed me in a private mail to _arguments. The -s option has
stopped working, it seems. This should fix it.


Bye
  Sven

Index: Completion/Base/Utility/_describe
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_describe,v
retrieving revision 1.10
diff -u -r1.10 _describe
--- Completion/Base/Utility/_describe	19 Oct 2001 10:28:08 -0000	1.10
+++ Completion/Base/Utility/_describe	6 May 2002 07:58:29 -0000
@@ -66,7 +66,7 @@
         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 @@
     
         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}##([^:\\]|\\?)##}"

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author