diff options
-rw-r--r-- | src/terminal-screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 55a01bc..3433c09 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -1949,7 +1949,8 @@ terminal_screen_child_exited (VteTerminal *terminal, int status) switch (action) { case TERMINAL_EXIT_CLOSE: - g_signal_emit (screen, signals[CLOSE_SCREEN], 0); + if ((status != 9) || (priv->override_command != NULL)) + g_signal_emit (screen, signals[CLOSE_SCREEN], 0); break; case TERMINAL_EXIT_RESTART: terminal_screen_launch_child_on_idle (screen); |