Skip to content

Commit

Permalink
Allow tab to close after typing 'exit' at the commandline. (#92)
Browse files Browse the repository at this point in the history
Nullify 'program' variable after program exits so next "child-exited" signal from terminal closes the tab.
  • Loading branch information
Jeremy Wootten authored and danirabbit committed May 11, 2017
1 parent 04d5c03 commit ef26cbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PantheonTerminalWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ namespace PantheonTerminal {
/* If a program was running, do not close the tab so that output of program
* remains visible */
t.active_shell (location);
/* Allow closing tab with "exit" */
program = null;
} else {
t.tab.close ();
}
Expand Down

0 comments on commit ef26cbe

Please sign in to comment.