From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: dana <dana@dana.is>
Cc: Nathan Sidwell <nathan@acm.org>, Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: unicode in prompt breaks command search
Date: Fri, 17 Jan 2020 09:23:26 +0100 [thread overview]
Message-ID: <CAN=4vMr9LEAi+Hcpca_9B5Myj70xoZTr-OEUFW-oKMXGKtpL5g@mail.gmail.com> (raw)
In-Reply-To: <6D242ADC-BAEC-450D-B7BC-974988C38066@dana.is>
Zsh can figure out how many columns Unicode characters take provided
that you configure locale correctly. The most common reason why Zsh
might think that every byte is one character is because the encoding
in the current locale is not UTF-8.
There might be other reasons for the behavior you describe. This entry
from powerlevel10k FAQ can be helpful in diagnosing the problem:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#why-is-my-cursor-in-the-wrong-place.
It's mostly not specific to powerlevel10k.
Roman.
next prev parent reply other threads:[~2020-01-17 8:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 21:43 Nathan Sidwell
2020-01-17 1:25 ` dana
2020-01-17 8:23 ` Roman Perepelitsa [this message]
2020-01-17 12:05 ` Nathan Sidwell
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='CAN=4vMr9LEAi+Hcpca_9B5Myj70xoZTr-OEUFW-oKMXGKtpL5g@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=dana@dana.is \
--cc=nathan@acm.org \
--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).