git: stop rebase when user clicks Cancel in squash commit message dialog

Fixes IDEA-180118
This commit is contained in:
Kirill Likhodedov
2018-06-11 10:29:24 +03:00
parent 8bd74c4860
commit 116c1b6aa4
@@ -76,7 +76,7 @@ public class GitInteractiveRebaseEditorHandler implements Closeable, GitRebaseEd
try {
if (myRebaseEditorShown) {
myEditorCancelled = !handleUnstructuredEditor(path);
return 0;
return myEditorCancelled ? ERROR_EXIT_CODE : 0;
}
else {
setRebaseEditorShown();