Skip to content

Commit

Permalink
Add an extra space to the last progress line
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd authored and djc committed Dec 31, 2021
1 parent 92ce4c3 commit 0e57b21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/draw_target.rs
Expand Up @@ -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(())
Expand Down

0 comments on commit 0e57b21

Please sign in to comment.