-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt gap is shorter than it should be #241
Comments
I'll need more information to debug this. Please post the output of the following command. typeset -m 'POWERLEVEL9K_*|ZSH_VERSION|COLUMNS|ZLE_RPROMPT_INDENT' |
|
For some reason macOS thinks that U+F878 has zero width. This isn't a font issue but some kind of low level bug. You can see it by running the following code: echo '123\n\uF878^' In the output, Here's another test. If you run this command, you'll notice that the cursor is at the left margin. PROMPT=$'\uF878' zsh -f You can work around this issue like this: POWERLEVEL9K_CONTEXT_TEMPLATE='\uf2be%n%246F @ \uf878%{ %} %180F%m'
POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='\uf2be%n%246F @ \uf878%{ %} %227F%m' (I added You should apply this workaround only on macOS. If you apply it where it's unnecessary, your prompt line will once again be off by one. |
I'm assuming the workaround has worked for you. Please reopen the issue if not. |
Thank you! This resolves the problem. |
96b520b2 build v1.5.1 binaries for all platforms ffeb0507 bump version to v1.5.1 1bcbea07 mbuild: disable pacman upgrades on msys 39dbb92f log a warning if unable to parse packed-refs a9d70ec0 add `-r` flag to gitstatus_start in bash bindings (#241) abbf9a79 don't use static_assert with one argument as it's not available prior to c++17 (#239) f8c396e4 drop all tags if packed-refs doesn't have a header line (#1428) git-subtree-dir: gitstatus git-subtree-split: 96b520b248ca872646e27b3df4535898356e4637
Copied from https://twitter.com/0xKruzr/status/1178779412847878144:
Any idea why this seems to happen on Mac? (misaligned right side frame) Tried it with Terminal and iTerm.
The text was updated successfully, but these errors were encountered: