{"thread":{"id":"65163","subject":"Fwd: Issue with 'git add --patch' after editor closes","startedAt":"2026-03-07T21:52:57Z","lastAt":"2026-03-07T21:52:57Z","messageCount":1,"participants":["Dana Escoli"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"538181","messageId":"CADCPJ26LU9kXNH04mPk_+u6Y=m-eSEH6ifHzHWN5tkM=pGpwJA@mail.gmail.com","threadId":"65163","inReplyTo":"CADCPJ26F633ftXb_pJrotQNrYCUNXCpBDDP12bBNtkGwudCqqA@mail.gmail.com","subject":"Fwd: Issue with 'git add --patch' after editor closes","fromName":"Dana Escoli","fromEmail":"dana.escoli.2@gmail.com","sentAt":"2026-03-07T21:52:44Z","receivedAt":"2026-03-07T21:52:57Z","isPatch":false,"sender":{"key":"dana.escoli.2@gmail.com","avatar":null},"body":"Hi everyone.\nMaybe you can help me.\nThe issue: I'm using the bash.exe from the Git installation in Windows\n10 (git version 2.48.1.windows.1), and when I close the editor after\nediting the hunk, the command line doesn't echo the keyboard inputs\nanymore. Even ctrl+C doesn't respond; but, with ctrl+Z I see that it's\ntaking the inputs, but there seems to be a single quote at the\nbeginning, messing everything up:\n\n'2/20) Stage this hunk [y,n,q,a,d,K,j,J,g,/,s,e,p,?]? Only one letter\nis expected, got 'n\n\n(2/20) Stage this hunk [y,n,q,a,d,K,j,J,g,/,s,e,p,?]?\n\nIn this example I typed \"n\" (it didn't appear in the console), then\npressed enter, and after nothing happened, I pressed ctrl+Z and got\nthose two lines (notice the single quote before the \"n\", and the one\nat the beginning of the line) and the 'git add' finished.\n\nNow, if I use the git-bash.exe this doesn't happen. It works fine. But\nI'm using it from Intellij's terminal, and git-bash opens its own\nindependent window.\nI tried with notepad and notepad++ with the same result.\nAlso tried from cmd with the same result, so I think Intellij has nothing to do.\n\nAny idea why this is happening and how to solve it?\nThanks.\nDana\n"}]}