We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb823d commit 5afa9a4Copy full SHA for 5afa9a4
src/draw_target.rs
@@ -454,7 +454,7 @@ impl ProgressDrawState {
454
// Keep the cursor on the right terminal side
455
// So that next user writes/prints will happen on the next line
456
let line_width = console::measure_text_width(line);
457
- term.write_str(&" ".repeat(term.width() - line_width))?;
+ term.write_str(&" ".repeat(term.width().saturating_sub(line_width)))?;
458
}
459
460
0 commit comments