Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_describe bug?
- X-seq: zsh-workers 33204
- From: Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _describe bug?
- Date: Fri, 19 Sep 2014 20:33:47 +0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=X5OTmZ4KxdcaZgMFA0BjmUZP1R1bRiqjB1yyQAufodI=; b=Gsw70eDqhZHev/wbAjjzLen6dCbhON5jtNQI2UMmewibE/z+O912uUTSwO+HDeMlaD 4PoBCIRvM1mfMwG2gQU62DlU2rERtHuJD6CDZpip/um9kEKYDBp4djqTW4/GvodASMcG ubjdnV1uWDNgHtit7XWLnVMrexv3aFwoKKPbpRbFAwP/QByp7RJx/CzPeHiGpJXBuxWq XHRCNkbcbRTOeMTMaj5R9l2puISUcFOJt5T1doYp4LqkN6bN0qYeWXVfZT9yRdfsTp8I Jd63nmnVSqZfDBHH566tb15sFwQI8/k87E4QsEhqmfrRfqbB92Z9q+CHJ3M6139AeeC9 41GA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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