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

using a newline in the left prompt causes the right prompt to start on the second line #1363

Open
Martmists-GH opened this issue Sep 16, 2019 · 6 comments

Comments

@Martmists-GH
Copy link

Describe Your Issue

The right prompt is on the second line due to the newline segment in the left prompt
image

Have you tried to debug or fix it?

I have tried to make a manual newline prompt and use terminal tweaks, but couldn't find a solution.

Environment Information

  • ZSH 5.7.1
  • P9K installed from AUR, latest version
  • Termite VTE
@MaxL
Copy link

MaxL commented Sep 18, 2019

you can use POWERLEVEL9K_RPROMPT_ON_NEWLINE=false for that

@romkatv
Copy link

romkatv commented Sep 18, 2019

POWERLEVEL9K_RPROMPT_ON_NEWLINE=false is the default, so it won't do anything if you set it explicitly.

The problem is that POWERLEVEL9K_RPROMPT_ON_NEWLINE is ignored unless POWERLEVEL9K_PROMPT_ON_NEWLINE is set to true. However, the latter means that you cannot put any prompt segments on the last line. There is no fundamental reason for these restrictions. They just came about.

@Martmists-GH
Copy link
Author

So are there any plans to fix this bug?

@romkatv
Copy link

romkatv commented Sep 19, 2019

I'm not a powerlevel9k dev (nor a user), so I wouldn't know what the plans are. There is not much activity right now, so I wouldn't bet on this issue being resolved soon.

P.S.

I think calling it a limitation rather than a bug is more appropriate. It doesn't help you, of course, but it's more charitable to the devs.

@Martmists-GH
Copy link
Author

Seems like this is a known bug and #843 will fix this, if merged.

@romkatv
Copy link

romkatv commented Sep 19, 2019

Seems like this is a known bug and #843 will fix this, if merged.

Yep. It cannot be merged into master though, for it'll break the majority of p9k configurations, including the default. It could be merged into next, where it's sorta OK to introduce non-backward-compatible changes.

Once again, I'm not a powerlevel9k dev, so my opinion doesn't carry any weight here.

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