aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-10-14 16:44:28 +0200
committerGitHub <noreply@github.com>2024-10-14 16:44:28 +0200
commit618e0f7a34e51ad9f500320ffca320b56c667090 (patch)
treecd252e69d9b2d78f37a9e2f2d898c968aeae29a7 /src
parentdocs(changelog): fix plugins attaching to same session (diff)
downloadsl0ppij-618e0f7a34e51ad9f500320ffca320b56c667090.tar.gz
sl0ppij-618e0f7a34e51ad9f500320ffca320b56c667090.tar.xz
sl0ppij-618e0f7a34e51ad9f500320ffca320b56c667090.zip
fix(plugins): allow switching to a new session with cwd without specifying a layout (#3676)
Diffstat (limited to 'src')
-rw-r--r--src/commands.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands.rs b/src/commands.rs
index 605abdf8..dba2c9d7 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -483,6 +483,10 @@ pub(crate) fn start_client(opts: CliArgs) {
log::error!("Failed to parse new session layout: {:?}", e);
},
}
+ } else {
+ if let Some(cwd) = reconnect_to_session.cwd.as_ref() {
+ config_options.default_cwd = Some(cwd.clone());
+ }
}
is_a_reconnect = true;