From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23397 invoked from network); 9 May 2008 14:41:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 May 2008 14:41:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 72718 invoked from network); 9 May 2008 14:41:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 May 2008 14:41:44 -0000 Received: (qmail 16505 invoked by alias); 9 May 2008 14:41:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24984 Received: (qmail 16489 invoked from network); 9 May 2008 14:41:40 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 9 May 2008 14:41:40 -0000 Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by bifrost.dotsrc.org (Postfix) with ESMTP id 24B7880ED172 for ; Fri, 9 May 2008 16:41:36 +0200 (CEST) Received: from torch.brasslantern.com ([71.116.113.54]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K0L00JKPVGSDMJ5@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 09 May 2008 09:41:17 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m49EfFwl005186 for ; Fri, 09 May 2008 07:41:16 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m49EfFuu005185 for zsh-workers@sunsite.dk; Fri, 09 May 2008 07:41:15 -0700 Date: Fri, 09 May 2008 07:41:15 -0700 From: Bart Schaefer Subject: Re: Completion damaging prompt In-reply-to: <747dc8f30805090551j3d26f810ud868028403ab8d9f@mail.gmail.com> To: zsh-workers@sunsite.dk Message-id: <080509074115.ZM5184@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <747dc8f30805090551j3d26f810ud868028403ab8d9f@mail.gmail.com> Comments: In reply to "Renato Botelho" "Completion damaging prompt" (May 9, 9:51am) X-Virus-Scanned: ClamAV 0.91.2/7080/Fri May 9 15:44:04 2008 on bifrost X-Virus-Status: Clean On May 9, 9:51am, Renato Botelho wrote: } } root@botelhor:/home/garga# pkg } } When I press TAB, prompt's changed } } root@botelhor:/home/gapkg So the cursor appears to have backed up five spaces and covered over part of the prompt? Is that what you're trying to point out? } And if I clear the screen using ^L prompt changes to ~garga } } root@botelhor:~garga# Aside from what PWS wrote, this does look like a bug. Even if you've inadvertently created a named directory garga=/home/garga, the ZLE refresh code shouldn't mis-calculate the width of a prompt it has already printed, or should reprint the prompt when the width changes.