Skip to content

Commit

Permalink
Merge pull request mabe02#300 from avl42/issue-299
Browse files Browse the repository at this point in the history
Ctrl-C: only exitPrivateMode() if in private mode.
  • Loading branch information
mabe02 authored Mar 26, 2017
2 parents 53cd87d + 50ab756 commit 6eae87c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ private void isCtrlC(KeyStroke key) throws IOException {
&& !key.isAltDown()
&& key.isCtrlDown()) {

exitPrivateMode();
if (isInPrivateMode()) {
exitPrivateMode();
}
System.exit(1);
}
}
Expand Down

0 comments on commit 6eae87c

Please sign in to comment.