Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: pws-25: more completion goodies



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