diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-01-14 13:55:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-14 13:55:59 +0100 |
| commit | a71c6ba47c0c9bac8db983b4b33025325e62d21e (patch) | |
| tree | 2b856fd71a5964460e7b621b463abf5ea8ee7242 /src | |
| parent | fix(security): validate session name in delete-session to prevent directory d... (diff) | |
| download | sl0ppij-a71c6ba47c0c9bac8db983b4b33025325e62d21e.tar.gz sl0ppij-a71c6ba47c0c9bac8db983b4b33025325e62d21e.tar.xz sl0ppij-a71c6ba47c0c9bac8db983b4b33025325e62d21e.zip | |
fix: remove layout config when switching sessions (#4604)
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands.rs b/src/commands.rs index 4a7eb1be..79a8aa26 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -617,7 +617,7 @@ pub(crate) fn start_client(opts: CliArgs) { let os_input = get_os_input(get_client_os_input); loop { let os_input = os_input.clone(); - let config = config.clone(); + let mut config = config.clone(); let mut config_options = config_options.clone(); let mut opts = opts.clone(); let mut is_a_reconnect = false; @@ -659,6 +659,8 @@ pub(crate) fn start_client(opts: CliArgs) { if let Some(cwd) = &reconnect_to_session.cwd { new_session_cwd = Some(cwd.clone()); } + config = config_without_layout.clone(); + config_options = config_options_without_layout.clone(); is_a_reconnect = true; } |
