sobolevn / sobole-zsh-theme

Minimalistic zsh theme inspired by the old-fashioned hobbies.
http://sobolevn.me/sobole-zsh-theme/
147 stars 27 forks source link

Unicode error in multiline output #15

Closed sobolevn closed 6 years ago

sobolevn commented 6 years ago

Since last update I have found this little yet annoying bug: after some command exists with non-zero status code my theme looks and feels broken.

Initial view:

2018-11-11 23 18 28

Regular command, works fine:

2018-11-11 23 18 38

Error code is now shown, prompt is broken, note its position:

2018-11-11 23 18 47

It also affect how autocompletion works. Some random chars tend to appear in the suggestions.

I have tested this bug on several terminals, no changes. Version information: zsh 5.6.2 (x86_64-apple-darwin15.6.0)

After some debugging I was able to track down this problem to :high-voltage-sign: unicode sing. That I use for error status reporting. https://emojipedia.org/high-voltage-sign/

When I delete it, that's what happens:

2018-11-11 23 43 27

Everything looks normal again, spaces are respected.

sobolevn commented 6 years ago

So, I have decided to change this sign to ⚠️

koloskus commented 5 years ago

I was having what seems to be the same problem you described above with the ⚠️character, when the command exits with a non-zero status

Screen Shot 2019-08-06 at 2 32 13 PM

Strangely, I have an older machine that uses zsh 5.2 and copy of the theme from November 2017 that doesn't have this issue, though it uses the ⚡character:

Screen Shot 2019-08-06 at 4 03 15 PM

My newer machine was running zsh 5.3 by default, and the problem with ⚠️ went away after i installed a newer zsh using homebrew:

Screen Shot 2019-08-06 at 3 58 31 PM

Not sure if this is helpful at all, but just in case someone else runs into this problem I thought I'd add that here!

sobolevn commented 5 years ago

@koloskus thanks a lot!