Closed romkatv closed 4 years ago
There's no builtin support for putting right prompt on the same line with left prompt.
You can't expect everything works perfectly in an "ugly workaround", right?
There's no builtin support for putting right prompt on the same line with left prompt.
True. There is also no builtin support for Git status, command execution time, nvm or pretty much anything Powerlevel9k provides. If everything was builtin in ZSH, there would be no reason for Powerlevel9k to exist.
You can't expect everything works perfectly in an "ugly workaround", right?
Of course I expect the current implementation to do exactly what it does. Sometimes, what the current implementation does is not what users expect or desire. We call them bugs.
I cannot speak for all users but to me the current behavior is neither expected nor desired. I gather from your comment that you share this opinion. If your point is that fixing the bug is hard, I wholeheartedly agree. It's possible though. I'm not at liberty to point to the solution on this forum. You likely can guess where it can be found.
Fixed on next
with #1335
Thanks @romkatv for the Bug reports.
To reproduce:
Actual:
Expected:
Normally, ZSH doesn't display right prompt if it would overlap left prompt. If you type the following command, you won't see right prompt.
Now, if you make your terminal wider, right prompt will appear.
If you remove
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
from the p9k config above, right prompt won't be displayed, as expected.