summaryrefslogtreecommitdiffstats
path: root/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.rs')
-rw-r--r--src/commands.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.rs b/src/commands.rs
index 52dff211b..cde96b127 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -450,6 +450,9 @@ pub(crate) fn start_client(opts: CliArgs) {
// not want it to mix with the config of this session
let (new_layout, new_layout_config) = new_session_layout;
layout = new_layout;
+ if let Some(cwd) = reconnect_to_session.cwd.as_ref() {
+ layout.add_cwd_to_layout(cwd);
+ }
let mut new_config = config_without_layout.clone();
let _ = new_config.merge(new_layout_config.clone());
config = new_config;