summaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-29 19:08:36 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-29 19:08:36 +0200
commit70d9d2cf4f49a35f8ac5a4dd1b3e8c88da3981a6 (patch)
treef3bff85328dc62d87728977faaa7a08dd3f6de0c /zellij-client
parent154ed3d41cc863e0e4446309db38f8b3aa4479a6 (diff)
Add default_mode to attach
* Attaching a new session now also respects the default_mode setting of the client
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index 701047842..bd46c90b7 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -77,7 +77,7 @@ fn spawn_server(socket_path: &Path) -> io::Result<()> {
#[derive(Debug, Clone)]
pub enum ClientInfo {
- Attach(String, bool),
+ Attach(String, bool, Options),
New(String),
}
@@ -112,11 +112,11 @@ pub fn start_client(
#[cfg(not(any(feature = "test", test)))]
let first_msg = match info {
- ClientInfo::Attach(name, force) => {
+ ClientInfo::Attach(name, force, config_options) => {
SESSION_NAME.set(name).unwrap();
std::env::set_var(&"ZELLIJ_SESSION_NAME", SESSION_NAME.get().unwrap());
- ClientToServerMsg::AttachClient(client_attributes, force)
+ ClientToServerMsg::AttachClient(client_attributes, force, config_options)
}
ClientInfo::New(name) => {
SESSION_NAME.set(name).unwrap();