Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Trailing space after right-hand prompt. #420

Closed
edwardsmit opened this issue Mar 2, 2017 · 3 comments
Closed

Trailing space after right-hand prompt. #420

edwardsmit opened this issue Mar 2, 2017 · 3 comments

Comments

@edwardsmit
Copy link

As can be seen in the screenshot in #418 (comment) there is a trailing space after the right segment.
At my machine it is even more apparent, as I use tmux with a right colored segment and then you really see the difference.
Is this something which can be fixed by a setting, or is this a bug?

@dritter
Copy link
Member

dritter commented Mar 2, 2017

Hi @edwardsmit !

I got good news and bad news for you. Good: yes, that is a bug (so its fixable) and a workaround exists. Bad news: it is a bug/feature of ZSH. See #110

In short: the bottom right corner is special in Terminal Emulators (sort explanation from 2007). This goes way back to the early years of ZSH. This discussion from the mailing list is a very interesting read on that topic.
The workaround is to set ZLE_RPROMPT_INDENT=0, BUT that has some trade offs (at least one): Tabbing will shift the cursor around (see #364 )

@edwardsmit
Copy link
Author

What a complete answer. Thanks for taking the time to write this. Other OSS supporters/creators/community runners can take an example from that. It's complete, to the point and light of tone. Too bad this issue looks impossible to fix...
Thanks Dominik,@dritter

@bhilburn
Copy link
Member

bhilburn commented Apr 3, 2017

Yeah, @dritter is a rock star.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants