From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8999 invoked from network); 25 Jul 1999 05:03:28 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Jul 1999 05:03:28 -0000 Received: (qmail 7884 invoked by alias); 25 Jul 1999 05:03:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7274 Received: (qmail 7877 invoked from network); 25 Jul 1999 05:03:17 -0000 From: "Bart Schaefer" Message-Id: <990725050309.ZM16108@candle.brasslantern.com> Date: Sun, 25 Jul 1999 05:03:09 +0000 In-Reply-To: Comments: In reply to Vin Shelton "accept-and-menu-complete Inserts a NULL in -test-3" (Jul 24, 10:06pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Vin Shelton , zsh-workers@sunsite.auc.dk Subject: Re: accept-and-menu-complete Inserts a NULL in -test-3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 24, 10:06pm, Vin Shelton wrote: } Subject: accept-and-menu-complete Inserts a NULL in -test-3 } } mithril% bindkey '^X\t' accept-and-menu-complete } mithril% ls -d texinfo* } texinfo-3.12 texinfo-3.12h texinfo-3.12n } mithril% ls -d texinfo-3.12^X } } results in: } } mithril% ls -d texinfo-3.12^@texinfo-3.12h/ The following fixes this for me, and I don't see how it can be wrong even if it's incomplete: Index: Src/Zle/zle_tricky.c =================================================================== @@ -568,6 +568,8 @@ cs = minfo.pos + minfo.len + minfo.insc - (*(minfo.cur))->qisl; if (cs < l) foredel(l - cs); + else if (cs > ll) + cs = ll; inststrlen(" ", 1, 1); if (parpre) inststr(parpre); -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com