From 35498b603076e782af4e4e798bd874d323c8ec6e Mon Sep 17 00:00:00 2001 From: a-kenji Date: Thu, 16 Jun 2022 18:34:19 +0200 Subject: [PATCH] fix(action): correctly dispatch the `Write` action (#1518) The `Write` action should be called once per session. --- zellij-client/src/input_handler.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 5e92e1e38..d5bca1908 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -234,8 +234,12 @@ impl InputHandler { break; }, // Actions, that are indepenedent from the specific client - // should be specified here. - Action::NewTab(_) | Action::Run(_) | Action::NewPane(_) | Action::WriteChars(_) => { + // and not session idempotent should be specified here + Action::NewTab(_) + | Action::Run(_) + | Action::NewPane(_) + | Action::WriteChars(_) + | Action::Write(_) => { let client_id = clients.first().unwrap(); log::error!("Sending action to client: {}", client_id); self.dispatch_action(action, Some(*client_id));