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

_describe bug?



Hello,

Recently I noticed completion bug in _describe – if one provided name2 parameter (which made name2
array behave as completion list and name1 – as label:description list, according to zshcompsys),
then completion is offered only for (alphabetically?) first completion element:

#compdef testcmd
local -a lbl compl
lbl=(BBC BB BA AB AA)
compl=(bbc bb ba ab aa)
_describe 'whatever' lbl compl

$ testcmd <tab>
AA AB BA BB BBC

$ testcmd bb<tab>
BB BBC

$ testcmd b<tab>
BA BB BBC

$ testcmd a<tab>
<nothing>

I tried to dig from _describe module to the compadd but failed to debug this problem.

zsh 5.0.6

-- 
Regards,
  Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>



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