When using posh-git, the line being writtens gets desaligned after 3 characters #4200

Open
opened 2026-01-30 23:40:50 +00:00 by claunia · 0 comments
Owner

Originally created by @jfbueno on GitHub (Oct 1, 2019).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2681.0
Powershell Core: 6.2.1

Powershell Modules:
posh-git: 1.0.0
PSReadLine: 2.0.0

I'm not able to reproduce this bug outside git repos, so I think this is somehow related to posh-git (or maybe the PS1 variable).

I'm not sure if this is a problem with posh-git or the terminal itself, so I'm posting here looking for some guidance.

Steps to reproduce

If you're using posh-git, open the terminal on a GIT repository and type something with 3 or more characters.

Actual behavior

The line moves one column left.

terminal2


Update

Digging a little bit more into this I've found that this doesn't happen on a branch with no upstream tracking — which is represented by that 3 vertical lines character on posh-git.

So maybe it's related with the character?

Originally created by @jfbueno on GitHub (Oct 1, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version: 0.5.2681.0 Powershell Core: 6.2.1 Powershell Modules: posh-git: 1.0.0 PSReadLine: 2.0.0 ``` I'm not able to reproduce this bug outside git repos, so I think this is somehow related to posh-git (or maybe the PS1 variable). > I'm not sure if this is a problem with posh-git or the terminal itself, so I'm posting here looking for some guidance. # Steps to reproduce If you're using posh-git, open the terminal on a GIT repository and type something with 3 or more characters. # Actual behavior The line moves one column left. ![terminal2](https://user-images.githubusercontent.com/8502026/65963688-af793f00-e431-11e9-8a6c-3aef520bd13d.gif) --- ## Update Digging a little bit more into this I've found that this doesn't happen on a branch with no upstream tracking — which is represented by that 3 vertical lines character on posh-git. So maybe it's related with the `≡` character?
claunia added the Resolution-Duplicate label 2026-01-30 23:40:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4200