Merge pull request #211 from sharifhsn/devzero

`/dev/zero` fix (final)
This commit is contained in:
David Peter authored and GitHub committed 2023-12-11 22:55:38 +01:00
commit 1792090799
1 file changed
+5 -1
+5 -1
View File
@@ -621,7 +621,6 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
}
if is_empty {
self.print_header()?;
is_empty = false;
}
// squeeze is active, check if the line is the same
@@ -649,6 +648,11 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
}
self.writer.write_all(b"\n")?;
if is_empty {
self.writer.flush()?;
is_empty = false;
}
// increment index to next line
self.idx += 8 * self.panels;