fix(action): correctly dispatch the Write action (#1518)
The `Write` action should be called once per session.
This commit is contained in:
parent
05532c24ce
commit
35498b6030
1 changed files with 6 additions and 2 deletions
|
|
@ -234,8 +234,12 @@ impl InputHandler {
|
||||||
break;
|
break;
|
||||||
},
|
},
|
||||||
// Actions, that are indepenedent from the specific client
|
// Actions, that are indepenedent from the specific client
|
||||||
// should be specified here.
|
// and not session idempotent should be specified here
|
||||||
Action::NewTab(_) | Action::Run(_) | Action::NewPane(_) | Action::WriteChars(_) => {
|
Action::NewTab(_)
|
||||||
|
| Action::Run(_)
|
||||||
|
| Action::NewPane(_)
|
||||||
|
| Action::WriteChars(_)
|
||||||
|
| Action::Write(_) => {
|
||||||
let client_id = clients.first().unwrap();
|
let client_id = clients.first().unwrap();
|
||||||
log::error!("Sending action to client: {}", client_id);
|
log::error!("Sending action to client: {}", client_id);
|
||||||
self.dispatch_action(action, Some(*client_id));
|
self.dispatch_action(action, Some(*client_id));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue