From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18034 invoked by alias); 1 Nov 2009 22:21:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27331 Received: (qmail 4479 invoked from network); 1 Nov 2009 22:20:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.49 as permitted sender) Message-Id: <200911012220.nA1MKgjM005270@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: zsh eats 100% CPU with completion in / In-Reply-To: Message from Mikael Magnusson of "Sun, 01 Nov 2009 22:12:08 +0100." <237967ef0911011312u307ecf19kbabf9fecf867cec1@mail.gmail.com> Date: Sun, 01 Nov 2009 22:20:42 +0000 X-Cloudmark-Analysis: v=1.0 c=1 a=KKLPYScoP6YA:10 a=NLZqzBF-AAAA:8 a=myjLchA1x5WTsyXGu_wA:9 a=Yb0Ddr0Qydni-RNIPLCLt58IxjAA:4 a=_dQi-Dcv4p4A:10 Mikael Magnusson wrote: > I did the break after typing ./ and before pressing tab. Nothing leapt out of that. "tokstr" seems to be coming back as "." and then the "." gets removed, as far as I can see, but looking at it out of context I might be wrong. Might be worth checking zlemetacs as well as zlemetaline and zlemetall on entry to get_comp_string() in case they're already wrong, otherwise it's probably down in the bowels of gettok() where it puts together the string it's returning. I suspect a counting error---one of the myriad substractions to correct for all the things that need fixing on the way through the position calculations is wrong. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/