zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Dieter Bolz <franz.dieter.bolz@gmail.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Zsh line editor backwards delete
Date: Thu, 18 Jan 2024 07:25:26 -0800	[thread overview]
Message-ID: <CAH+w=7Z6QfSV-KBJ14wLpmKN26PGm=xpwSBD2jeFYxdxaf2HGA@mail.gmail.com> (raw)
In-Reply-To: <AM9PR02MB73636480A809344E1EBBB27FA0712@AM9PR02MB7363.eurprd02.prod.outlook.com>

On Thu, Jan 18, 2024 at 4:49 AM Dieter Bolz <franz.dieter.bolz@gmail.com> wrote:
>
> When creating a longer line with several words in it:
> and then backspacing (either with just Backspace or Meta-Backspace or the like) the text is actually deleted in the line buffer but there are characters remaining on the screen.

The most likely cause of this is that the display width of characters
in your prompt is not being correctly measured.

What's going on here with the prompt changing?

> db@machine: 1234
> db@machine➜    1

I suspect you need to adjust your PS1 value to specify a correct
character width for that ➜ glyph.  Search for "glitch" in the manual.


  reply	other threads:[~2024-01-18 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-18 12:49 Dieter Bolz
2024-01-18 15:25 ` Bart Schaefer [this message]
2024-01-18 16:08   ` AW: " Dieter Bolz

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=7Z6QfSV-KBJ14wLpmKN26PGm=xpwSBD2jeFYxdxaf2HGA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=franz.dieter.bolz@gmail.com \
    --cc=zsh-workers@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).