From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12427 invoked from network); 29 Feb 2000 18:37:04 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Feb 2000 18:37:04 -0000 Received: (qmail 29043 invoked by alias); 29 Feb 2000 18:36:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9943 Received: (qmail 29026 invoked from network); 29 Feb 2000 18:36:52 -0000 From: "Bart Schaefer" Message-Id: <1000229183643.ZM31571@candle.brasslantern.com> Date: Tue, 29 Feb 2000 18:36:43 +0000 In-Reply-To: <1000229181244.ZM31539@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "PATCH: (partially) Re: %<< and %{%}" (Feb 29, 6:12pm) References: <1000229173223.ZM29798@candle.brasslantern.com> <1000229181244.ZM31539@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: (partially) Re: %<< and %{%} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 29, 6:12pm, Bart Schaefer wrote: } Subject: PATCH: (partially) Re: %<< and %{%} } } Had a quick look at this ... unfortunately, the way prompt truncation } is now calculated, the knowledge of what strings were contained inside } %{...%} has been lost by the time we start computing the truncation. Minor correction: It hasn't been lost -- it's represented by Inpar and Outpar tokens in the prompt string, but prompttruncate() doesn't look for them -- it just does pointer arithmetic and memmove(). It's going to be only a little bit tricky to fix it. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com