Open klylesatepic opened 7 months ago
Experiencing this issue and want to track any updates. I prefer notepad++ as my general quick editor and would prefer not to have to change that or remember to change the editor before doing an add -i.
In case it helps, I'm pretty sure I'm experiencing the same issue with VSCode as my editor.
The steps to reproduce are the same, except for step 4, you want GIT_EDITOR="code --wait" assuming you have VSCode in your PATH.
I switched to using vanilla Git Bash for the file where I was experiencing the issue as a workaround.
Previously reported at https://github.com/microsoft/terminal/issues/16553 and https://github.com/msys2/msys2.github.io/issues/307.
Setup
I don't think so, but I'm happy to answer further questions.
Details
Git Bash in Windows Terminal
GIT_EDITOR='"C:\Program Files\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -noPlugin' git add -p
to interactively stage parts of the fileThe same issue happens with
git add -i
instead ofgit add -p
, but requires more steps between steps 4/5.The issue does not happen if any of the following are true:
You use /c/Windows/System32/notepad.exe instead of Notepad++
The bug still happens if you just use 'notepad', which is a shell script in Git Bash located at /usr/bin/notepad
What did you expect to occur after running these commands?
Input would be accepted for dealing with the next hunk, and git would not hang.
Input is not accepted (or at least not echoed), and git hangs.
Not repository specific.