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

Re: _requested problem?



Tanaka Akira wrote:

> Z(4):akr@serein% Src/zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> serein% _tst () {
> function> local expl ret=1
> function> _tags a b 
> function> while _tags; do
> function while> _requested a expl aa compadd a && ret=0
> function while> _requested b expl bb compadd b && ret=0
> function while> (( $ret )) || break
> function while> done
> function> }
> serein% zstyle :completion::complete:tst:: tag-order a
> serein% tst b<TAB>
> 
> I think this should complete `bb' but it doesn't.

It should complete `b' and...

> Is this fix correct?

... yes, this is correct.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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