diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-07-09 00:25:59 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-07-09 00:36:47 +0530 |
commit | 67ee63548aa48caebf32b081d57cb8184bff39b8 (patch) | |
tree | 270873d4947ac83b2b51876a2dabc17f8b9a6ff0 /zellij-client/src | |
parent | 50d049a0edd2b342b4c6e9e279d0be77c2c5398d (diff) |
Add on_force_close config option
Diffstat (limited to 'zellij-client/src')
-rw-r--r-- | zellij-client/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 90732024d..2bfaae2e8 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -164,6 +164,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({ @@ -200,7 +202,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())); } }), ); |