From 2563fbb441ef358bc22b3c66e0685271838699df Mon Sep 17 00:00:00 2001 From: a-kenji Date: Thu, 16 Jun 2022 15:20:23 +0200 Subject: [PATCH] fix(action): send `WriteChars` once per action (#1516) `WriteChars` is not an idempotent action, that's why it should only be sent to it's destination client. --- zellij-client/src/input_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 084019c5..5e92e1e3 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -235,7 +235,7 @@ impl InputHandler { }, // Actions, that are indepenedent from the specific client // should be specified here. - Action::NewTab(_) | Action::Run(_) | Action::NewPane(_) => { + Action::NewTab(_) | Action::Run(_) | Action::NewPane(_) | Action::WriteChars(_) => { let client_id = clients.first().unwrap(); log::error!("Sending action to client: {}", client_id); self.dispatch_action(action, Some(*client_id));