diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-05-29 19:08:36 +0200 |
---|---|---|
committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-29 19:08:36 +0200 |
commit | 70d9d2cf4f49a35f8ac5a4dd1b3e8c88da3981a6 (patch) | |
tree | f3bff85328dc62d87728977faaa7a08dd3f6de0c /src | |
parent | 154ed3d41cc863e0e4446309db38f8b3aa4479a6 (diff) |
Add default_mode to attach
* Attaching a new session now also respects the
default_mode setting of the client
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b9147fab2..97ad3deee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,7 @@ use zellij_utils::{ cli::{CliArgs, Command, Sessions}, consts::{ZELLIJ_TMP_DIR, ZELLIJ_TMP_LOG_DIR}, input::config::Config, + input::options::Options, logging::*, setup::{get_default_data_dir, Setup}, structopt::StructOpt, @@ -63,11 +64,14 @@ pub fn main() { } else { session_name = Some(get_active_session()); } + + let config_options = Options::from_cli(&config.options, opts.command.clone()); + start_client( Box::new(os_input), opts, config, - ClientInfo::Attach(session_name.unwrap(), force), + ClientInfo::Attach(session_name.unwrap(), force, config_options), ); } else { let session_name = opts |