summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/input/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zellij-utils/src/input/actions.rs')
-rw-r--r--zellij-utils/src/input/actions.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs
index a9ab37053..51ead67b3 100644
--- a/zellij-utils/src/input/actions.rs
+++ b/zellij-utils/src/input/actions.rs
@@ -258,17 +258,19 @@ impl Action {
cwd,
floating,
name,
+ close_on_exit,
} => {
if !command.is_empty() {
let mut command = command.clone();
let (command, args) = (PathBuf::from(command.remove(0)), command);
let cwd = cwd.or_else(|| std::env::current_dir().ok());
+ let hold_on_close = !close_on_exit;
let run_command_action = RunCommandAction {
command,
args,
cwd,
direction,
- hold_on_close: true,
+ hold_on_close,
};
if floating {
Ok(vec![Action::NewFloatingPane(