concat tmux parser buffer and unparsed bytes

This commit is contained in:
g4c authored and Wez Furlong committed 2022-01-17 13:08:41 -07:00
1 parent 64d38c94c5
commit 3054fd045e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ impl<'a, F: FnMut(Action)> VTActor for Performer<'a, F> {
)));
}
}
Err(err) => {
Err(_) => {
drop(tmux_parser);
self.state.tmux_state = None; // drop tmux state
}
+1 -1
View File
@@ -516,7 +516,7 @@ impl Parser {
return Err(anyhow::anyhow!(format!(
"{}{}",
err,
std::str::from_utf8(bytes).unwrap()
std::str::from_utf8(&bytes[i..]).unwrap()
)));
}
}