From 2bef092859cdbdd678478f42d106abdf3e3a021f Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Fri, 24 Feb 2023 22:51:53 +0100 Subject: [PATCH] ansi parser: stop on zero byte --- nested/src/terminal/ansi_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nested/src/terminal/ansi_parser.rs b/nested/src/terminal/ansi_parser.rs index 02b4e68..669ee06 100644 --- a/nested/src/terminal/ansi_parser.rs +++ b/nested/src/terminal/ansi_parser.rs @@ -65,7 +65,7 @@ pub fn read_ansi_from( 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);