Carat position is lost when using certain unicode characters. #15798
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Attention
The core contributors need to come back around and look at this ASAP.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Windows Terminal version
1.17.11461.0
Windows build number
Microsoft Windows [Version 10.0.22621.1992]
Other Software
git version 2.41.0.windows.3
GNU bash, version 5.2.15(1)-release (x86_64-pc-msys)
Steps to reproduce
winget install Git.Git
echo $TERM
-> should returnxterm-256color
.PS1='issue-terminal: '
Note: This specific character isn't the issue. Other characters also can cause the issue.
Expected Behavior
Pasting the character multiple time progresses the line as normal:
![image](https://private-user-images.githubusercontent.com/490309/258704219-50c8da16-d06f-4360-853d-1092a408fd43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzU1NDAsIm5iZiI6MTczOTU3NTI0MCwicGF0aCI6Ii80OTAzMDkvMjU4NzA0MjE5LTUwYzhkYTE2LWQwNmYtNDM2MC04NTNkLTEwOTJhNDA4ZmQ0My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMzIwNDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZGQzNDhlMTVkODhiYzA4MjZhZjA1NDU2YTZkOTQ4MDZhNjUxMTRiMzYzNjdlOTRmOTc3MjA2NzFkZGY2OTdmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UMP8M7IYaYyFr3hLVF-H7V569DwtcRdMzVRYYb24xx8)
Expected behaviour screenshot was created by launching Git Bash itself, which I believe uses MinTTY.
Actual Behavior
Pasting the character multiple times shifts the carat back 1 space each time.
Other Notes
I have tried several other terminal emulators and they seem to work as expected.
The text was updated successfully, but these errors were encountered: