Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: use of _arguments for set
- X-seq: zsh-workers 14416
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: use of _arguments for set
- Date: Mon, 21 May 2001 17:11:16 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <3B090939.6661A937@xxxxxxxxxxxxx>
- Sender: kiddleo
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