-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Backspace, left and right in Windows integrated terminal cause prompt to go out of sync in Git bash #7345
Comments
I haven't actually seen this, could you include a screenshot or a gif? I'm assuming you set it to the bash.exe not the git bash executable also? |
OK, this is happening very easily to me. Unfortunately I couldn't figure out any modern programs that show the actual keystrokes in an overlay for Windows (anybody know??) and this isn't a great capture, but it does show it happening a few times, should be obvious without the keystrokes showing. On the first line when I try to delete all the text including "echo", I can't backspace any more but the echo still shows. executing what looks like Then the next line I just show that Then I tried a third example and that one exhibited no glitches finally. |
Windows7 Start > cmd > cd c:\gitportable-209-x64\bin > bash.exe This problem is probably due to using incompatible versions of the cygwin DLL. |
I get this in powershell too. I don't use cygwin so it is not caused by that when I am in PowerShell. |
I also see issues when moving left and right. The visual cursor can get slightly out of sync with where it really is. Usually it is a space or 2 when it happens. |
@gerane I feel like this is fixed in Insiders now, I can't reproduce anymore. Have you seen it recently? |
@Tyriar I still see the visual cursor in the wrong place occasionally. Almost always by a single space. It might show in one spot but is really 1 to the left or right. If I move the cursor, the visual cursor might lag behind or skip ahead by 1 space of where the actual cursor is located. Then if I enter input it isn't input where the visual cursor shows it should be. |
Cannot repro:
Can repro:
Updating Windows now to try |
Moving to September since endgame is starting and this is lower priority than originally thought. |
Related to this (shown below), when you type any command that has parameters in quotation marks, typing |
Hi! Have you found any working solution? EDIT: Re-installed git bash and it is now working. Cannot reproduce the problem I had before. |
With the Cygwin bash this problem occurs this well. |
This problem is happening for me on Windows 10 (version 1607 build 14393.447) with VSCode 1.7.1 and Git for Windows 2.10.2. When I use bash.exe as the integrated terminal, the backspace or arrow keys cause the cursor to become out of sync with what's printed on the screen. |
I've started tracking all issues like this in #14613 as I believe they're all related. |
I have had this out of sync issue in the Visual Code terminal with git bash since I downloaded Visual Code (a few months ago) and it has never been solved. Looking forward to when this terminal fix will be updated to the regular Visual Code. |
@acidic9 great to hear! It's likely around 2 weeks off. |
@Kenya-West that issue is #19665 |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: