From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: _requested problem?
Date: 05 May 2000 00:34:56 +0900 [thread overview]
Message-ID: <hvopur2pbvj.fsf@serein.m17n.org> (raw)
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.
Is this fix correct?
Index: Completion/Core/_requested
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_requested,v
retrieving revision 1.4
diff -u -r1.4 _requested
--- Completion/Core/_requested 2000/04/25 11:00:06 1.4
+++ Completion/Core/_requested 2000/05/04 15:32:56
@@ -9,7 +9,7 @@
if comptags -R "$1"; then
if [[ $# -gt 3 ]]; then
- _all_labels - "$gopt" "$@"
+ _all_labels - "$gopt" "$@" || return 1
elif [[ $# -gt 1 ]]; then
_description "$gopt" "$@"
fi
--
Tanaka Akira
next reply other threads:[~2000-05-04 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-04 15:34 Tanaka Akira [this message]
2000-05-04 15:39 Sven Wischnowsky
2000-05-04 16:31 ` Tanaka Akira
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=hvopur2pbvj.fsf@serein.m17n.org \
--to=akr@m17n.org \
--cc=zsh-workers@sunsite.auc.dk \
/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).