Skip to content

Commit

Permalink
tmux: fix send-keys
Browse files Browse the repository at this point in the history
Needs the % prefix to find the pane by id

refs: #1090
  • Loading branch information
wez committed Jan 17, 2022
1 parent 1c38c61 commit 0eb1417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux/src/tmux_commands.rs
Expand Up @@ -301,7 +301,7 @@ impl TmuxCommand for SendKeys {
for &byte in self.keys.iter() {
write!(&mut s, "0x{:X} ", byte).expect("unable to write key");
}
format!("send-keys -t {} {}\r", self.pane, s)
format!("send-keys -t %{} {}\r", self.pane, s)
}

fn process_result(&self, _domain_id: DomainId, _result: &Guarded) -> anyhow::Result<()> {
Expand Down

0 comments on commit 0eb1417

Please sign in to comment.