Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: pws-25: more completion goodies
- X-seq: zsh-workers 6981
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: pws-25: more completion goodies
- Date: Mon, 05 Jul 1999 16:23:36 +0200
- In-reply-to: "Sven Wischnowsky"'s message of "Mon, 05 Jul 1999 15:40:56 DFT." <199907051340.PAA07817@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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 <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author