diff --git a/src/progress.rs b/src/progress.rs index aa838d4e8..21a8fb6a9 100644 --- a/src/progress.rs +++ b/src/progress.rs @@ -37,6 +37,7 @@ impl Progress { if progress.overall == 1.0 { write!(ui, "\r{}", Clear(ClearType::CurrentLine))?; + ui.flush()?; return Ok(()); } diff --git a/src/ui.rs b/src/ui.rs index a220d6f7e..da01b2d51 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -331,5 +331,6 @@ pub struct OutputGuard { impl Drop for OutputGuard { fn drop(&mut self) { _ = self.output.write_all(self.text.as_bytes()); + _ = self.output.flush(); } }