zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: questions re: NO_PROMPT_PERCENT
Date: Mon, 9 Aug 2021 14:49:59 -0700	[thread overview]
Message-ID: <CAH+w=7ZntY2CndZXAqQYYyrXkj5S6me8G5Zf4AjcvE-CHh1SAw@mail.gmail.com> (raw)
In-Reply-To: <31323-1628541975.218161@pkyE.Ss-A.4HoV>

On Mon, Aug 9, 2021 at 1:46 PM Oliver Kiddle <opk@zsh.org> 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.


      reply	other threads:[~2021-08-09 21:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-07  3:06 Roman Neuhauser
2021-08-09 20:46 ` Oliver Kiddle
2021-08-09 21:49   ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7ZntY2CndZXAqQYYyrXkj5S6me8G5Zf4AjcvE-CHh1SAw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).