From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28814 invoked from network); 5 Jul 1999 14:52:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jul 1999 14:52:32 -0000 Received: (qmail 21651 invoked by alias); 5 Jul 1999 14:52:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6981 Received: (qmail 21644 invoked from network); 5 Jul 1999 14:52:22 -0000 Message-Id: <9907051423.AA17876@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: pws-25: more completion goodies In-Reply-To: "Sven Wischnowsky"'s message of "Mon, 05 Jul 1999 15:40:56 DFT." <199907051340.PAA07817@beta.informatik.hu-berlin.de> Date: Mon, 05 Jul 1999 16:23:36 +0200 From: Peter Stephenson Sven Wischnowsky wrote: > Peter Stephenson wrote: > > > +# Took me ages to work this out. If we're not on the first global > > +# matcher specification, we mustn't do any I/O. > > +if [[ compstate[matcher] -gt 1 && -n $_read_comp ]]; then > > + return 1 > > +fi > > I'm still scratching my head, but shouldn't that be `-z $_read_comp'? Yes. --- Completion/Commands/_read_comp.c4 Mon Jul 5 11:10:23 1999 +++ Completion/Commands/_read_comp Mon Jul 5 16:21:32 1999 @@ -27,7 +27,7 @@ # Took me ages to work this out. If we're not on the first global # matcher specification, we mustn't do any I/O. -if [[ compstate[matcher] -gt 1 && -n $_read_comp ]]; then +if [[ compstate[matcher] -gt 1 && -z $_read_comp ]]; then return 1 fi -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy