From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2114 invoked from network); 9 Aug 2005 10:06:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Aug 2005 10:06:02 -0000 Received: (qmail 8857 invoked from network); 9 Aug 2005 10:05:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Aug 2005 10:05:56 -0000 Received: (qmail 7315 invoked by alias); 9 Aug 2005 10:05:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21587 Received: (qmail 7306 invoked from network); 9 Aug 2005 10:05:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Aug 2005 10:05:53 -0000 Received: (qmail 8586 invoked from network); 9 Aug 2005 10:05:53 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 9 Aug 2005 10:05:48 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 9 Aug 2005 11:03:38 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 9 Aug 2005 11:05:32 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j79A5lL4025248 for ; Tue, 9 Aug 2005 11:05:47 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j79A5kY6025245 for ; Tue, 9 Aug 2005 11:05:46 +0100 Message-Id: <200508091005.j79A5kY6025245@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: PATCH: (one-liner) adjustwinsize doesn't update prompt string In-reply-to: <200508081258.38014.dan.zsh@bullok.com> References: <200508061220.24187.dan@bullok.com> <200508081032.j78AWcfg008014@news01.csr.com> <200508081258.38014.dan.zsh@bullok.com> Date: Tue, 09 Aug 2005 11:05:45 +0100 From: Peter Stephenson X-OriginalArrivalTime: 09 Aug 2005 10:05:32.0095 (UTC) FILETIME=[E0A13CF0:01C59CC9] 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.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Dan Bullok wrote: > I kept at this, and have made some progress I'm able to completely work > around this problem by creating a new function in Src/Zle/zle_main.c called > zle_resetprompt. This does the same thing that resetprompt does, only it can > be called from call the zle reset-prompt from outside of zle (i.e. in ). > Then you don't have to call trashzle, which seems to be the cause of the > extra newlines. Instead, you call zle_resetprompt after calling zrefresh > (before might work, too, but I didn't try it). Seems to work, so I checked this on both branches (code is a little different on main). I'm not convinced we need both the zrefresh() before and the redisplay() after the prompt expansion (even though the logic depends on zleactive), but it's small enough that I haven't played around with it. > > By the way, our mail scanning software (blackspider) decided there was a > > virus (huntsman) in your script attachment. It's presumably wrong, but > > anyway the attachment got blocked. > > Hmmm. Everything looks okay here. Mail was sent from a hardened Linux box > that gets regular inspections by rkhunter and chkrootkit. It also seems to > have gone through the mailing list intact, because I got a copy (and it's the > same one I sent). I think your virus scanner's probably overcautious (which > isn't necessarily a bad thing). Yes, I think so, too. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************