ansi parser: stop on zero byte
This commit is contained in:
parent
4acce3921d
commit
2bef092859
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue