ansi parser: stop on zero byte

This commit is contained in:
Michael Sippel 2023-02-24 22:51:53 +01:00
parent 4acce3921d
commit 2bef092859
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -65,7 +65,7 @@ pub fn read_ansi_from<R: Read + Unpin>(
loop {
match ansi_reader.read(&mut buf) {
//Ok(0) => break,
Ok(0) => break,
Ok(n) => {
for byte in &buf[..n] {
statemachine.advance(&mut performer, *byte);