github / GitPad

Notepad.exe as Git commit editor
MIT License
187 stars 69 forks source link

ensure notepad.exe is always used as the editor #9

Closed crdx closed 12 years ago

crdx commented 12 years ago

I'm not sure whether this change fixes a bug, or whether the behaviour is by design, so feel free to not merge it if that's the case.

I noticed that GitPad stopped using notepad when I changed my default editor for txt files to something else. I still wanted GitPad to open with notepad but I found it was opening the other editor.

(The reason I can't just use this editor instead is because it's the single-instance kind where, if there's an existing process, all it does is communicate which file to open to that process and then exit immediately. Which to git meant I had finished editing, making it impossible to use.)

Anyway, I fixed that by running notepad.exe with the file as the argument rather than just the file itself.

crdx commented 12 years ago

Never mind. I just saw the part of the readme that says that this is by design.