-
Notifications
You must be signed in to change notification settings - Fork 31k
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
when pasting in git bash terminal it adds 1~ at the end #141879
Comments
May be another effect of git-for-windows/git#3657 Do you see same issue reproducible outside of VS Code? E.g. in Windows Terminal, ConEmu, or directly launching |
Hello @IllusionMH
in vs code I tried successfully pasting the same SHA in VS code
it does not work for git bash inside vs code not sure what to do at the moment |
This happens because something (conpty or git bash) turned on bracketed paste mode and it's not properly supported by something. Chances are this is due to microsoft/terminal#395, could also be git bash requests it and doesn't handle it properly. See https://unix.stackexchange.com/a/196574/115410 for a way to disable it temporarily for that session, VS Code is behaving correctly in this case though.
This could indicate it's fixed in a later version of conpty (shared component with WT) and you will get the fix eventually when you update Windows. |
ok I've managed to resolve it with the following
and in order to having this working all the time , I've put it inside .bashrc @Tyriar @IllusionMH thanks for your time |
@MV88 good to know, I'm actually going to add that to our website FAQ |
Issue Type: Bug
when pasting the sha of a commit from github into git bash terminal inside vs code
I end up having 1~
correct 812c47165c0c1ab5658af344f91178d93c261453
wrong 812c47165c0c1ab5658af344f91178d93c2614531~
if i paste a bit longer text i have this
correct b34e807456cfd2333889dc83f3a867dffaa6169cd
wrong b34e807456cfd2333889dc83f3a867dffaa6169cd01~
correct b34e807456cfd2333889dc83f3a867dffaa6169cd2
wrong b34e807456cfd2333889dc83f3a867dffaa6169cd2[201~
it happens only for the shell inside vs code,
if i open the gitbash outside, it works fine
i tried the following solution with no luck
https://unix.stackexchange.com/questions/196098/copy-paste-in-xfce4-terminal-adds-0-and-1
printf "\e[?2004l"
VS Code version: Code 1.63.2 (899d46d, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (29)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: