concat tmux parser buffer and unparsed bytes
This commit is contained in:
1 parent
64d38c94c5
commit
3054fd045e
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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()
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user