zsh-workers
 help / color / mirror / code / Atom feed
* _requested problem?
@ 2000-05-04 15:34 Tanaka Akira
  0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 2000-05-04 15:34 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _requested problem?
  2000-05-04 15:39 Sven Wischnowsky
@ 2000-05-04 16:31 ` Tanaka Akira
  0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 2000-05-04 16:31 UTC (permalink / raw)
  To: zsh-workers

In article <200005041539.RAA14632@beta.informatik.hu-berlin.de>,
  Sven Wischnowsky <wischnow@informatik.hu-berlin.de> writes:

> It should complete `b' and...

Oops.  My modification on news reader was wrong...

> ... yes, this is correct.

OK.  I committed.
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _requested problem?
@ 2000-05-04 15:39 Sven Wischnowsky
  2000-05-04 16:31 ` Tanaka Akira
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 2000-05-04 15:39 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-05-04 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-04 15:34 _requested problem? Tanaka Akira
2000-05-04 15:39 Sven Wischnowsky
2000-05-04 16:31 ` Tanaka Akira

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).