From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28821 invoked from network); 4 Oct 2005 09:48:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Oct 2005 09:48:39 -0000 Received: (qmail 92318 invoked from network); 4 Oct 2005 09:48:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Oct 2005 09:48:32 -0000 Received: (qmail 3540 invoked by alias); 4 Oct 2005 09:48:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21823 Received: (qmail 3527 invoked from network); 4 Oct 2005 09:48:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Oct 2005 09:48:29 -0000 Received: (qmail 92102 invoked from network); 4 Oct 2005 09:48:29 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 4 Oct 2005 09:48:27 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EMjPO-0001af-T4; Tue, 04 Oct 2005 11:48:27 +0200 Date: Tue, 4 Oct 2005 11:48:56 +0200 From: DervishD To: Bart Schaefer Cc: Zsh Workers Subject: Re: PATCH? - Re: Bug? in complist when filenames are longer than the screen Message-ID: <20051004094856.GA19101@DervishD> Mail-Followup-To: Bart Schaefer , Zsh Workers References: <20051003144536.GA3179@DervishD> <200510032145.07748.arvidjaar@newmail.ru> <20051003184822.GA3240@DervishD> <1051004020717.ZM5616@candle.brasslantern.com> <1051004043950.ZM30570@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1051004043950.ZM30570@candle.brasslantern.com> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) 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.0.4 Hi Bart :) First of all, thanks for your patches :) * Bart Schaefer dixit: > } I don't really know what the problem is > I still don't know what the problem is, but I have a reproducible > infinite loop. Use a PS1 string at least 10 characters long, and > make the window narrower than 12 characters, so that the first > completion filled in on the command line by menu-completion is > forced to wrap to the next line of the screen. Then begin doing > menu completion with listing. When the completion reaches the end > of the list and wraps back to the first entry, zsh goes into an > infinite loop attempting to compute the *line* on which to begin > redrawing. The first patch (the "defensive" patch) does not help here, it has no effect at least in the way I'm reproducing the problem (exactly with the code snippet I posted yesterday in the list, using zsh -f). BUT the second patch certainly prevents the infinite loop. Unfortunately it doesn't avoid the crash nor the screen messup. I cannot reproduce the crash, unfortunately :(( It happens randomly after the screen messup, sometimes after the first keypress after the menu completion ends, other times after playing with the keyboard for a while :( I'm gonna try your third patch and I'll answer about it in that thread. Thanks a lot for being trying to solve my problem. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...