-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Bash prompt misbehaves when used from a vim terminal buffer #3662
Comments
This version came with a different MSYS2 runtime version than v2.35.0. Could you try with the current version? Also, you may want to enable support for pseudo consoles in the installer, that will most likely make a difference. |
Sure, I'll give that a whirl, should be back on that machine in the next few days. I'll try pseudo console support too, thanks for the suggestion. |
Thanks for your help. I reproduced the issue with Git-2.35.1-64-bit. This was with:
The same issue occurs with Is there anything I can do to use the pseudo consoles, or do they get picked up automatically? And are there any other steps that might help diagnose? |
@bobrippling could you please test the latest snapshot, there are a couple of fixes that might address your issue. |
Sure - should be able to check it out in the next few days |
@dscho thanks for the update. I've found the bug present like so:
|
And which is the oldest snapshot that has the bug? |
Gave these a test:
So I would guess the bug is in this range of commits, but there doesn't seem to be anything tty related. |
It is more likely that the bug is in the Can you run a diff on the |
Don't you push Shift + Space there, and the keys turn to If so, how about adding below into your silent! tnoremap <S-space> <space> I think this problem has existed since quite before ver. of git-for-windows env. |
Ah thanks! Looks like it could be the vim change between `etc/package-versions.txt` diff--- PortableGit-02af2/etc/package-versions.txt 2019-11-06 11:55:04.000000000 +0100
+++ PortableGit-a4c71/etc/package-versions.txt 2019-11-17 12:29:43.000000000 +0100
@@ -4,3 +4,3 @@
bzip2 1.0.8-1
-ca-certificates 20180409-1
+ca-certificates 20190110-1
coreutils 8.31-1
@@ -15,3 +15,3 @@
gettext 0.19.8.1-1
-git-extra 1.1.423.4f345a3-1
+git-extra 1.1.440.61ea095-1
git-flow 1.12.3-1
@@ -29,4 +29,4 @@
libcrypt 2.1-2
-libcurl 7.66.0-1
-libedit 20190324_3.1-1
+libcurl 7.67.0-1
+libedit 20191025_3.1-1
libexpat 2.2.9-1
@@ -64,6 +64,6 @@
mingw-w64-x86_64-bzip2 1.0.8-1
-mingw-w64-x86_64-ca-certificates 20180409-5
+mingw-w64-x86_64-ca-certificates 20190110-1
mingw-w64-x86_64-c-ares 1.15.0-1
mingw-w64-x86_64-connect 1.105-1
-mingw-w64-x86_64-curl 7.66.0-1
+mingw-w64-x86_64-curl 7.67.0-1
mingw-w64-x86_64-expat 2.2.9-1
@@ -71,5 +71,5 @@
mingw-w64-x86_64-gettext 0.19.8.1-8
-mingw-w64-x86_64-git 2.24.0.windows.1.4.g02af2cc5bf-1
+mingw-w64-x86_64-git 2.24.0.windows.2.10.ga4c71cf243-1
mingw-w64-x86_64-git-credential-manager 1.20.0-1
-mingw-w64-x86_64-git-doc-html 2.24.0.windows.1.4.g02af2cc5bf-1
+mingw-w64-x86_64-git-doc-html 2.24.0.windows.2.10.ga4c71cf243-1
mingw-w64-x86_64-git-lfs 2.9.0-1
@@ -88,3 +88,3 @@
mingw-w64-x86_64-libunistring 0.9.10-1
-mingw-w64-x86_64-libwinpthread-git 7.0.0.5544.15da3ce2-1
+mingw-w64-x86_64-libwinpthread-git 8.0.0.5574.33e5a2ac-1
mingw-w64-x86_64-libzip 1.5.2-2
@@ -106,3 +106,3 @@
msys2-runtime 3.0.7-3
-nano 4.4-1
+nano 4.5-1
ncurses 6.1.20190615-1
@@ -121,3 +121,3 @@
perl-HTML-Tagset 3.20-2
-perl-HTTP-Cookies 6.04-1
+perl-HTTP-Cookies 6.05-1
perl-HTTP-Daemon 6.01-2
@@ -129,3 +129,3 @@
perl-JSON 2.97001-1
-perl-libwww 6.39-1
+perl-libwww 6.41-1
perl-LWP-MediaTypes 6.02-2
@@ -148,3 +148,3 @@
unzip 6.0-2
-vim 8.1.2104-1
+vim 8.1.2292-1
which 2.21-2
This fixes it for me, thanks! So this is a vim bug - sorry for the noise, and thanks again for all your help @dscho, it's appreciated. And thanks for the tip off @KSR-Yasuda - had this problem for about a year now! |
Possibly related issues:
Setup
No - I believe this can be reproduced from a vanilla setup.
Details
Bash
The text
a && b
should be ready at the bash promptThe text
a &&;2ub
appeared at the bash prompt - I suspect something like the&
is being interpreted as an escape code due to the odd terminal setup betweenvim
andbash
in the gitbash terminal.<n/a>
Investigation
I've found the issue wasn't present in older versions and believe the first affected version to be 2.25.0:
The text was updated successfully, but these errors were encountered: