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

Re: questions re: NO_PROMPT_PERCENT



On Mon, Aug 9, 2021 at 1:46 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> For what it's worth, I neither see much breakage when turning
> prompt_percent off nor do I find any uses of print -P when grepping in
> the Completion directory of the zsh sources. If there are any, ${(%)...}
> should be used instead. Is your breakage perhaps just a messed up
> terminal due to literal escape sequences in your prompt?

Anything that depends on %{...%} to tell the prompt code (and by
extension the completion code) where there are cursor movements that
shouldn't be counted as part of the shape of the prompt, is going to
become broken if PROMPT_PERCENT is turned off.  There are a couple of
things in the Functions/ tree (some of them written by me, I see) that
assume PROMPT_PERCENT is active without asserting it, but I don't see
anything like that in the Completion/ tree.




Messages sorted by: Reverse Date, Date, Thread, Author