Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion
- X-seq: zsh-workers 7538
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: completion
- Date: Mon, 30 Aug 1999 11:30:40 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 28 Aug 1999 15:01:41 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> Hm. _arguments called from _cvs should not complete options after
> non-option arguments.
... because `_cvs' uses `*::...'. Right.
Bye
Sven
diff -u oc/Base/_arguments Completion/Base/_arguments
--- oc/Base/_arguments Mon Aug 30 10:58:52 1999
+++ Completion/Base/_arguments Mon Aug 30 11:29:55 1999
@@ -499,6 +499,7 @@
line=( "$line[@]" "$ws[1]" )
[[ -n "$inopt" ]] && nargbeg=$(( beg - 1 ))
inopt=''
+ [[ -z "$args[nth]" && "$rest" = \*::* ]] && break
(( nth++ ))
fi
fi
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author