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 59576e22c1..5765e54a27 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 c1f238edcc..4a242715af 100644 --- a/zellij-server/src/lib.rs +++ b/zellij-server/src/lib.rs @@ -386,25 +386,23 @@ pub fn start_server(mut os_input: Box, socket_path: PathBuf) { .senders .send_to_screen(ScreenInstruction::TerminalResize(min_size)) .unwrap(); - // we only do this inside this if because it means there are still connected - // clients - 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(); } + 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(); if session_state.read().unwrap().clients.is_empty() { *session_data.write().unwrap() = None; break; @@ -421,25 +419,23 @@ pub fn start_server(mut os_input: Box, socket_path: PathBuf) { .senders .send_to_screen(ScreenInstruction::TerminalResize(min_size)) .unwrap(); - // we only do this inside this if because it means there are still connected - // clients - 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(); } + 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::KillSession => { let client_ids = session_state.read().unwrap().client_ids(); @@ -461,25 +457,23 @@ pub fn start_server(mut os_input: Box, socket_path: PathBuf) { .senders .send_to_screen(ScreenInstruction::TerminalResize(min_size)) .unwrap(); - // we only do this inside this if because it means there are still connected - // clients - 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(); } + 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(mut output) => { let client_ids = session_state.read().unwrap().client_ids();