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.
This commit is contained in:
parent
3ccc1f3946
commit
2563fbb441
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue