Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Better prompt width calculations (Re: Possible bug to RPROMPT)
- X-seq: zsh-workers 34836
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Better prompt width calculations (Re: Possible bug to RPROMPT)
- Date: Fri, 3 Apr 2015 00:46:17 +0900
- In-reply-to: <140807013638.ZM10806@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- 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>
Sorry for replying to a half-year old patch.
2014/08/07 17:36, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
...
>
> 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."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author