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 | |
| parent | docs(changelog): fullscreen focus swapping (diff) | |
| download | sl0ppij-35498b603076e782af4e4e798bd874d323c8ec6e.tar.gz sl0ppij-35498b603076e782af4e4e798bd874d323c8ec6e.tar.xz sl0ppij-35498b603076e782af4e4e798bd874d323c8ec6e.zip | |
fix(action): correctly dispatch the `Write` action (#1518)
The `Write` action should be called once per session.
| -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 5e92e1e3..d5bca190 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)); |
