From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26655 invoked from network); 6 Oct 2006 16:29:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2006 16:29:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 4781 invoked from network); 6 Oct 2006 16:29:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 16:29:39 -0000 Received: (qmail 15535 invoked by alias); 6 Oct 2006 16:29:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10799 Received: (qmail 15524 invoked from network); 6 Oct 2006 16:29:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 16:29:30 -0000 Received: (qmail 3588 invoked from network); 6 Oct 2006 16:29:30 -0000 Received: from 24-241-49-70.static.athn.ga.charter.com (HELO gkar.zhar.net) (24.241.49.70) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 16:29:27 -0000 Received: from mollari.zhar.net ([192.168.1.7]) by gkar.zhar.net with smtp (Exim 3.36 #1 (Debian)) id 1GVsfr-00007R-00 for ; Fri, 06 Oct 2006 12:35:47 -0400 Received: by mollari.zhar.net (sSMTP sendmail emulation); Fri, 6 Oct 2006 12:29:25 -0400 Date: Fri, 6 Oct 2006 12:29:25 -0400 From: John Eikenberry To: Zsh users list Subject: Re: _all_matches moves cursor Message-ID: <20061006162925.GC12364@mollari.zhar.net> Mail-Followup-To: John Eikenberry , Zsh users list References: <20061006051215.GA12364@mollari.zhar.net> <200610060941.k969fbIw017806@news01.csr.com> <200610061003.k96A3RQh019503@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610061003.k96A3RQh019503@news01.csr.com> User-Agent: Mutt/1.5.11 That did the trick. Thanks! Peter Stephenson wrote: > I've read it more carefully and I think there's simply a bug in the > calculation at this point. Try this... > > Index: Src/Zle/compresult.c > =================================================================== > RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v > retrieving revision 1.65 > diff -u -r1.65 compresult.c > --- Src/Zle/compresult.c 11 Aug 2006 21:30:38 -0000 1.65 > +++ Src/Zle/compresult.c 6 Oct 2006 10:02:53 -0000 > @@ -2126,7 +2126,7 @@ > if (add) > strcat(buf, " "); > strcat(buf, m->str); > - len -= t; > + len -= t + add; > add = 1; > } else { > if (len > add + 2) { > -- John Eikenberry [jae@zhar.net - http://zhar.net] ______________________________________________________________ "It is difficult to produce a television documentary that is both incisive and probing when every twelve minutes one is interrupted by twelve dancing rabbits singing about toilet paper." - Rod Serling