From 0c24edea7f5156aa897201c0db054cd588f92a60 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sun, 19 Jun 2022 21:49:47 +0200 Subject: [PATCH] fix: dispatch various actions correctly (#1530) --- zellij-client/src/input_handler.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index b5aaec66..7c35fa3c 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -229,13 +229,21 @@ impl InputHandler { .send_to_server(ClientToServerMsg::DetachSession(vec![*first, *last])); break; }, - // Actions, that are indepenedent from the specific client + // Actions, that are independent from the specific client // and not session idempotent should be specified here Action::NewTab(_) + | Action::CloseFocus + | Action::CloseTab | Action::Run(_) | Action::NewPane(_) | Action::WriteChars(_) | Action::EditScrollback + | Action::DumpScreen(_) + | Action::ToggleActiveSyncTab + | Action::ToggleFloatingPanes + | Action::TogglePaneEmbedOrFloating + | Action::TogglePaneFrames + | Action::ToggleFocusFullscreen | Action::Write(_) => { let client_id = clients.first().unwrap(); log::error!("Sending action to client: {}", client_id);