zsh-workers
 help / color / mirror / code / Atom feed
* configure completion with argument
@ 2000-10-16 11:59 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 2000-10-16 11:59 UTC (permalink / raw)
  To: ZSH workers mailing list

The following fails:

configure --TAB  mips-sni-sysv4

that is, options completion if argument is present.

-andrej

Have a nice DOS!
B >> 


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

* Re: configure completion with argument
@ 2000-10-17 14:01 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-10-17 14:01 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> The following fails:
> 
> configure --TAB  mips-sni-sysv4
> 
> that is, options completion if argument is present.

Hrmpf. In a certain sense, this was correct, because it was awfully
clever and saw that this command doesn't take any arguments. And hence 
the command line didn't match the specification.

But making it a bit more forgiving might make sense, too, especially
since we added something similar for options qute some time ago.

Bye
 Sven

Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.43
diff -u -r1.43 computil.c
--- Src/Zle/computil.c	2000/10/05 08:55:35	1.43
+++ Src/Zle/computil.c	2000/10/17 13:59:05
@@ -1485,8 +1485,11 @@
 		state.nargbeg = cur - 1;
 		state.argend = argend;
 	    }
-	    if (!d->args && !d->rest && *line && *line != '-' && *line != '+')
+	    if (!d->args && !d->rest && *line && *line != '-' && *line != '+') {
+		if (!multi && cur > compcurrent)
+		    break;
 		return 1;
+	    }
 	    if ((adef = state.def = ca_get_arg(d, state.nth)) &&
 		(state.def->type == CAA_RREST ||
 		 state.def->type == CAA_RARGS)) {

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~2000-10-17 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-16 11:59 configure completion with argument Andrej Borsenkow
2000-10-17 14:01 Sven Wischnowsky

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