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 | |
| parent | Add/ci enable clippy (#1509) (diff) | |
| download | sl0ppij-2563fbb441ef358bc22b3c66e0685271838699df.tar.gz sl0ppij-2563fbb441ef358bc22b3c66e0685271838699df.tar.xz sl0ppij-2563fbb441ef358bc22b3c66e0685271838699df.zip | |
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.
| -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 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)); |
