sobolevn/sobole-zsh-theme

Unicode error in multiline output

sobolevn opened this issue · 3 comments

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.

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

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!

@koloskus thanks a lot!