X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=editor.c;h=27bdecdaf3d99d3179737e07be971d2458408660;hb=57ff1703d72db1cf33f985dcebfb03fdaab758dc;hp=065a7abf2ffc0df61c35e0740e95caa5af14b229;hpb=bc60f9f37767f72d7ef73a4df536e199a3c13540;p=git.git diff --git a/editor.c b/editor.c index 065a7abf2..27bdecdaf 100644 --- a/editor.c +++ b/editor.c @@ -51,7 +51,7 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en sigchain_push(SIGINT, SIG_IGN); sigchain_push(SIGQUIT, SIG_IGN); ret = finish_command(&p); - sig = ret + 128; + sig = ret - 128; sigchain_pop(SIGINT); sigchain_pop(SIGQUIT); if (sig == SIGINT || sig == SIGQUIT)