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

Re: PATCH: completion for zstyle



Peter Stephenson wrote:

> Here's some completion support for zstyle.  In the first argument it will
> complete only :completion: or :zftp:; for the second all the standard styles;
> for the third, it knows about most completable values for the various
> styles (and knows whether they are specific to :completion:* or :zftp:*).
> Goodness knows if I've used contexts and tags in a consistent fashion
> within _zstyle itself.

I'm not Goodness but I think it looks fine. Just one typo and two
omissions.


Bye
 Sven

diff -ru ../z.old/Completion/Builtins/_zstyle Completion/Builtins/_zstyle
--- ../z.old/Completion/Builtins/_zstyle	Tue Jan  4 10:16:06 2000
+++ Completion/Builtins/_zstyle	Tue Jan  4 10:17:34 2000
@@ -1,7 +1,8 @@
 #compdef zstyle
 
-local curcontext="$curcontext" state ostate line expl ctop
-local nm=$compstat[nmatches]
+local curcontext="$curcontext" state context ostate line expl ctop
+local nm=$compstate[nmatches]
+typeset -A opt_args
 
 typeset -A styles
 # Assoc array of styles; the values give the possible top-level

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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