diff --git a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__detach_and_attach_session.snap b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__detach_and_attach_session.snap index f7d0dce7..af538e25 100644 --- a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__detach_and_attach_session.snap +++ b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__detach_and_attach_session.snap @@ -5,7 +5,7 @@ expression: last_snapshot --- Zellij (e2e-test)  Tab #1  ┌ Pane #1 ─────────────────────────────────────────────────┐┌ Pane #2 ─────────────────────────────────────────────────┐ -│$ ││$ I am some text█ │ +│$ █ ││$ I am some text │ │ ││ │ │ ││ │ │ ││ │ diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs index 13d2f5c5..88f85013 100644 --- a/zellij-server/src/lib.rs +++ b/zellij-server/src/lib.rs @@ -477,6 +477,22 @@ pub fn start_server(mut os_input: Box, socket_path: PathBuf) { .send_to_screen(ScreenInstruction::TerminalResize(min_size)) .unwrap(); } + session_data + .write() + .unwrap() + .as_ref() + .unwrap() + .senders + .send_to_screen(ScreenInstruction::RemoveClient(client_id)) + .unwrap(); + session_data + .write() + .unwrap() + .as_ref() + .unwrap() + .senders + .send_to_plugin(PluginInstruction::RemoveClient(client_id)) + .unwrap(); } ServerInstruction::Render(serialized_output) => { let client_ids = session_state.read().unwrap().client_ids();