From 0e57b21e7ab1752d3796f41fa310bbf96ce5f4ac Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Fri, 31 Dec 2021 03:17:46 +0100 Subject: [PATCH] Add an extra space to the last progress line --- src/draw_target.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/draw_target.rs b/src/draw_target.rs index 2803a0d3..1bb9c560 100644 --- a/src/draw_target.rs +++ b/src/draw_target.rs @@ -396,6 +396,9 @@ impl ProgressDrawState { } else { // Don't append a '\n' if this is the last line term.write_str(line)?; + // Also append a ' ' to keep the original chars count + // This is important if the line was meant to fill the entire width + term.write_str(" ")?; } } Ok(())