Skip to content

Commit

Permalink
fix(action): send WriteChars once per action (#1516)
Browse files Browse the repository at this point in the history
`WriteChars` is not an idempotent action, that's why it should only
be sent to it's destination client.
  • Loading branch information
a-kenji authored Jun 16, 2022
1 parent 3ccc1f3 commit 2563fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zellij-client/src/input_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2563fbb

Please sign in to comment.