diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-06-16 18:34:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 18:34:19 +0200 |
commit | 35498b603076e782af4e4e798bd874d323c8ec6e (patch) | |
tree | 6955593da49dbab62e5ea8229f4d7d6ddff80ca9 /zellij-client | |
parent | 05532c24cebd1fca63a9030ddb43a34f235091c2 (diff) |
fix(action): correctly dispatch the `Write` action (#1518)
The `Write` action should be called once per session.
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/src/input_handler.rs | 8 |
1 files 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)); |