tmuxcc: fix TmuxPty* Write impl to return length of consumed data (#8006)

refs: #8003
This commit is contained in:
Benoit de Chezelles authored and GitHub committed 2026-09-17 11:44:57 +02:00
1 parent 2658f629cd
commit b09b56c29c
1 file changed
+2 -2
+2 -2
View File
@@ -35,7 +35,7 @@ impl Write for TmuxPtyWriter {
keys: buf.to_vec(),
}));
TmuxDomainState::schedule_send_next_command(self.domain_id);
Ok(0)
Ok(buf.len())
}
fn flush(&mut self) -> std::io::Result<()> {
@@ -56,7 +56,7 @@ impl Write for TmuxPty {
keys: buf.to_vec(),
}));
TmuxDomainState::schedule_send_next_command(self.domain_id);
Ok(0)
Ok(buf.len())
}
fn flush(&mut self) -> std::io::Result<()> {