aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-client/src
diff options
context:
space:
mode:
authorqepasa <pawelpalenica11@gmail.com>2021-07-20 22:19:03 -0700
committerGitHub <noreply@github.com>2021-07-20 22:19:03 -0700
commitf0bc2977434d54079e0ca50bd1c18cd8bb7e1830 (patch)
tree501314d4f6fcb6116acac0314cf21fa1c3e75223 /zellij-client/src
parentRead from LoggingPipe returns error (diff)
parentdocs(changelog): noop for mouse actions on plugins (diff)
downloadsl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.tar.gz
sl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.tar.xz
sl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.zip
Merge branch 'main' into unified-logging
Diffstat (limited to 'zellij-client/src')
-rw-r--r--zellij-client/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index d9dda42c..5c832e86 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -166,6 +166,8 @@ pub fn start_client(
})
});
+ let on_force_close = config_options.on_force_close.unwrap_or_default();
+
let _stdin_thread = thread::Builder::new()
.name("stdin_handler".to_string())
.spawn({
@@ -202,7 +204,7 @@ pub fn start_client(
Box::new({
let os_api = os_input.clone();
move || {
- os_api.send_to_server(ClientToServerMsg::Action(Action::Detach));
+ os_api.send_to_server(ClientToServerMsg::Action(on_force_close.into()));
}
}),
);