fix: flush buffer before resetting ansi formatting
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -297,7 +297,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "grip-grab"
|
||||
version = "0.2.11"
|
||||
version = "0.2.12"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
@ -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"
|
||||
|
@ -131,7 +131,7 @@ impl Printer {
|
||||
}
|
||||
|
||||
pub fn print(&mut self) -> Result<()> {
|
||||
self.writer.print(&self.buffer)?;
|
||||
self.buffer.flush()?;
|
||||
self.reset_ansi_formatting()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user