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

Re: PATCH: use of _arguments for set



Oliver Kiddle wrote:

> This showed up one bug in the recent _arguments changes:
> 
> set -A<tab> will complete only arrays but
> set +A<tab> also offers other + options as if -W had been specified to
> _arguments.

I had a closer look and this seems to be the fix:

Index: Completion/Base/Core/_tags
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_tags,v
retrieving revision 1.1
diff -u -r1.1 _tags
--- Completion/Base/Core/_tags  2001/04/02 11:04:49     1.1
+++ Completion/Base/Core/_tags  2001/05/21 16:06:53
@@ -41,7 +41,7 @@
     "$_sort_tags" "$@"
   else
     zstyle -a ":completion:${curcontext}:" tag-order order ||
-        order=('(|*-)argument-* (|*-)option-* values' options)
+        order=('(|*-)argument-* (|*-)option[-+]* values' options)
 
     for tag in $order; do
       case $tag in



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