diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-06-16 15:20:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 15:20:23 +0200 |
commit | 2563fbb441ef358bc22b3c66e0685271838699df (patch) | |
tree | 0198f3e72119ed5da5f4eef94cb34684a191f1d9 /zellij-client | |
parent | 3ccc1f39466f35b698bd5ea9b247832dac51cc90 (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')
-rw-r--r-- | zellij-client/src/input_handler.rs | 2 |
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)); |