From: dana <dana@dana.is>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [BUG] Issue with _arguments !-x !+x
Date: Wed, 12 Feb 2020 16:57:33 -0600 [thread overview]
Message-ID: <BED65A01-95AA-473E-BCF8-3E5E19A66C7E@dana.is> (raw)
I noticed something unexpected when i have both !-x and !+x type option specs
and then i try to complete stacked options containing the -x ones:
# Only !-x
% _foo() { _arguments -s -S : -{a,b,c} \!-{d,e,f} }
% compdef _foo foo
% foo -ad<TAB>
completing option:
-b -c
% foo -da<TAB>
completing option:
-b -c
% foo -def<TAB>
completing option:
-a -b -c
# Both !-x and !+x
% _foo() { _arguments -s -S : -{a,b,c} \!-{d,e,f} \!+{d,e,f} }
% compdef _foo foo
% foo -ad<TAB>
completing no arguments:
% foo -da<TAB>
completing option:
-b -c
% foo -def<TAB>
completing no arguments:
All i can figure out so far is that comparguments doesn't think there's
anything to complete. But i'm not sure why. Something to do with how ca_doff
is calculated, i think?
dana
next reply other threads:[~2020-02-12 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-12 22:57 dana [this message]
2020-03-01 21:36 ` Oliver Kiddle
2020-03-02 6:04 ` dana
2021-10-22 19:50 ` Oliver Kiddle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BED65A01-95AA-473E-BCF8-3E5E19A66C7E@dana.is \
--to=dana@dana.is \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).