Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Better prompt width calculations (Re: Possible bug to RPROMPT)



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