zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: optional argument?
Date: Tue, 25 Apr 2000 13:47:32 +0200 (MET DST)	[thread overview]
Message-ID: <200004251147.NAA04794@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Tue, 25 Apr 2000 11:45:20 +0200 (MET DST)


I wrote:

> ...
> 
> At the weekend I hacked on _arguments (and comparguments) to allow
> _arguments to complete more than one action when appropriate. And the
> case above is of course one of cases where it is done.

Just found out that I had forgotten to run diff again after the last
changes, sorry.

Bye
 Sven

Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.8
diff -u -r1.8 computil.c
--- Src/Zle/computil.c	2000/04/25 09:48:09	1.8
+++ Src/Zle/computil.c	2000/04/25 11:46:26
@@ -1399,7 +1399,7 @@
     for (; arg && (arg->num < 0 ||
 		   (arg->min <= ca_laststate.nth + addopt &&
 		    arg->num >= ca_laststate.nth));) {
-	if ((lopt = arg->type == CAA_OPT) && !opt && oopt > 0)
+	if (!opt && (lopt = arg->type != CAA_OPT) && oopt > 0)
 	    oopt = 0;
 
 	addlinknode(descr, arg->descr);
@@ -1446,7 +1446,7 @@
 	    }
 	}
     }
-    if (!single && opt && lopt) {
+    if (!single && opt && !lopt) {
 	opt = NULL;
 	arg = ca_get_arg(ca_laststate.d, ca_laststate.nth);
 

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


             reply	other threads:[~2000-04-25 11:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-25 11:47 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-08  9:44 Sven Wischnowsky
2000-05-08 10:01 ` Peter Stephenson
2000-05-08 14:49 ` Tanaka Akira
2000-04-25  9:45 Sven Wischnowsky
2000-04-28  9:44 ` Tanaka Akira
2000-05-05 17:53 ` Tanaka Akira
2000-04-19  8:00 Sven Wischnowsky
2000-04-21 14:49 ` Tanaka Akira
2000-04-19  7:12 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=200004251147.NAA04794@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).