mirror of
https://github.com/wez/wezterm.git
synced 2024-11-13 07:22:52 +03:00
make exit_behavior = "CloseOnCleanExit" the default
It seems generally useful and non-intrusive, so do that.
This commit is contained in:
parent
b4b92a68f7
commit
522d4ad814
@ -607,7 +607,7 @@ pub enum ExitBehavior {
|
||||
|
||||
impl Default for ExitBehavior {
|
||||
fn default() -> Self {
|
||||
ExitBehavior::Close
|
||||
ExitBehavior::CloseOnCleanExit
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
## `exit_behavior = "Close"`
|
||||
## `exit_behavior = "CloseOnCleanExit"`
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
Controls the behavior when the shell program spawned by the terminal exits.
|
||||
There are three possible values:
|
||||
|
||||
* `"Close"` - close the corresponding pane as soon as the program exits. This is the default setting.
|
||||
* `"Close"` - close the corresponding pane as soon as the program exits.
|
||||
* `"Hold"` - keep the pane open after the program exits. The pane must be manually closed via [CloseCurrentPane](../keyassignment/CloseCurrentPane.md), [CloseCurrentTab](../keyassignment/CloseCurrentTab.md) or closing the window.
|
||||
* `"CloseOnCleanExit"` - if the shell program exited with a successful status, behave like `"Close"`, otherwise, behave like `"Hold"`.
|
||||
* `"CloseOnCleanExit"` - if the shell program exited with a successful status, behave like `"Close"`, otherwise, behave like `"Hold"`. This is the default setting.
|
||||
|
||||
```lua
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user