fix: flush buffer before resetting ansi formatting

This commit is contained in:
alexpasmantier
2024-07-23 01:30:01 +02:00
parent 206765e2e9
commit 2ead12a33c
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -297,7 +297,7 @@ dependencies = [
[[package]]
name = "grip-grab"
version = "0.2.11"
version = "0.2.12"
dependencies = [
"anyhow",
"clap",

View File

@ -1,6 +1,6 @@
[package]
name = "grip-grab"
version = "0.2.11"
version = "0.2.12"
edition = "2021"
authors = ["Alexandre Pasmantier <alex.pasmant@gmail.com>"]
license = "Apache-2.0"

View File

@ -131,7 +131,7 @@ impl Printer {
}
pub fn print(&mut self) -> Result<()> {
self.writer.print(&self.buffer)?;
self.buffer.flush()?;
self.reset_ansi_formatting()
}