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

Re: _arguments: normal arg spec with empty action



On 18 Oct, "Jun T." wrote:
> If I type
>
> zsh% awk -<TAB>
>
> then it shows the list of options (-F -f -v), as expected.
> But if I hit <TAB> again, it does not cycle through the options.

I can't reproduce this so perhaps there's something setup related.
Does pressing tab a third time work?

> The following patch fixes the problem, but is this the best way to go?
> +    '1: : _message "program text"' \

Does _guard work? For a heading without matches, _message -e should be
used but that roughly what _arguments is doing.

Oliver



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