summaryrefslogtreecommitdiffstats
path: root/zellij-client/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-06-16 15:20:23 +0200
committerGitHub <noreply@github.com>2022-06-16 15:20:23 +0200
commit2563fbb441ef358bc22b3c66e0685271838699df (patch)
tree0198f3e72119ed5da5f4eef94cb34684a191f1d9 /zellij-client/src
parent3ccc1f39466f35b698bd5ea9b247832dac51cc90 (diff)
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.
Diffstat (limited to 'zellij-client/src')
-rw-r--r--zellij-client/src/input_handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs
index 084019c57..5e92e1e38 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));