diff options
author | qepasa <pawelpalenica11@gmail.com> | 2021-07-20 22:19:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 22:19:03 -0700 |
commit | f0bc2977434d54079e0ca50bd1c18cd8bb7e1830 (patch) | |
tree | 501314d4f6fcb6116acac0314cf21fa1c3e75223 /zellij-client | |
parent | 0cabc5f11291da1814abbf4ce68676b4d338f43a (diff) | |
parent | 105ae616829da277481b82fb9610062bea22f985 (diff) |
Merge branch 'main' into unified-logging
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/Cargo.toml | 5 | ||||
-rw-r--r-- | zellij-client/src/lib.rs | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/zellij-client/Cargo.toml b/zellij-client/Cargo.toml index 64241f585..731c0d452 100644 --- a/zellij-client/Cargo.toml +++ b/zellij-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zellij-client" -version = "0.15.0" +version = "0.16.0" authors = ["Kunal Mohan <kunalmohan99@gmail.com>"] edition = "2018" description = "The client-side library for Zellij" @@ -11,9 +11,10 @@ license = "MIT" [dependencies] mio = "0.7.11" termbg = "0.2.3" -zellij-utils = { path = "../zellij-utils/", version = "0.15.0" } +zellij-utils = { path = "../zellij-utils/", version = "0.16.0" } log = "0.4.14" + [dev-dependencies] insta = "1.6.0" diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index d9dda42ca..5c832e860 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())); } }), ); |