-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The git segment doesn't render correctly when switching to a shorter branch name #4839
Comments
This happens to me with any segment, but only seems to happen on cmd when the previous render was longer then the current one. It does go away when I press enter, so I think it is clearing the last template after the current one has been rendered. |
We use clink to reload the prompt using their functionality (which should clear it). Is that one up-to-date? @chrisant996 anything you can think about on why this happens? |
I tried downgrading clink to 1.6.9 and the problem disappeared. |
It's a regression in v1.6.10 caused by the change to reduce flicker. I opened an issue in the Clink repro to track it. The flicker reduction change missed that multi-line prompts often don't clear at the ends of lines within the prompt. In the next update, Clink will automatically clear at the ends of lines within a multi-line prompt. (I could, of course, just go back to having flicker. But the flicker is very annoying and distracting, so I'm intent on eliminating it -- but safely.) |
I'm closing this as an external issue, thanks @chrisant996 for being so responsive as always 🙏🏻 |
Clink v1.6.12 is available with the fix. |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. |
Code of Conduct
What happened?
When I switch to a branch with shorter name than current, part of the current branch name remains. No problem when switching to a longer branch name.
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
cmd
Log output
The text was updated successfully, but these errors were encountered: