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

Re: Passsing descriptions down in completion functions



I wrote:
> The first bug (in my opinion) is that
>   _wanted hosts expl host compadd "$@" -a hosts -
> does not work because any explanation arguments after the -a option are
> ignored.

I've just realised that this is wrong because -a is just a flag, with
hosts not being an argument to -a. So _hosts should do:
  _wanted hosts expl host compadd "$@" -a - hosts

And a similar change is needed across many of the completion functions.

Oliver

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.



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