From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11483 invoked by alias); 2 Apr 2015 16:26:08 -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: 34836 Received: (qmail 15183 invoked from network); 2 Apr 2015 16:26:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] Better prompt width calculations (Re: Possible bug to RPROMPT) From: "Jun T." In-Reply-To: <140807013638.ZM10806@torch.brasslantern.com> Date: Fri, 3 Apr 2015 00:46:17 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <8D0CBF9F-48C2-407C-AAAB-C2F0A03D3299@kba.biglobe.ne.jp> References: <201408041950.s74Jo1PS001579@pws-pc.ntlworld.com> <140804135036.ZM1983@torch.brasslantern.com> <140805005445.ZM27314@torch.brasslantern.com> <140806005719.ZM28961@torch.brasslantern.com> <140807013638.ZM10806@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 53813 Sorry for replying to a half-year old patch. 2014/08/07 17:36, Bart Schaefer wrote: > diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo > index 36f351b..963207f 100644 > --- a/Doc/Zsh/prompt.yo > +++ b/Doc/Zsh/prompt.yo ... > @@ -344,11 +353,19 @@ string, or to the end of the next enclosing = group of the `tt(%LPAR())' > construct, or to the next truncation encountered at the same grouping ... >=20 > current directory, followed by a `tt(%)' or `tt(#)', followed by a > space. Without the `tt(%<<)', those two characters would be included > -in the string to be truncated. > +in the string to be truncated. Note that `tt(%-0<<)' is a distinct > + > +Truncation applies only within each individual line of the prompt, as The statement ".... is a distinct" seems to be "truncated". Maybe something like the following? "... is not equivalent to `tt(%<<)' but specifies that the prompt is truncated at the right margin."