Skip to content

Commit

Permalink
Ensure that line is in normal background state before filling right
Browse files Browse the repository at this point in the history
Thanks @da-x
  • Loading branch information
dandavison committed Apr 30, 2020
1 parent 3e46301 commit 5b26209
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/paint.rs
Expand Up @@ -129,6 +129,7 @@ impl<'a> Painter<'a> {
}
ansi_strings.push(to_ansi_style(style, config.true_color).paint(text));
}
ansi_strings.push(background_ansi_style.paint(""));
let line = &mut ansi_term::ANSIStrings(&ansi_strings).to_string();
let background_color_extends_to_terminal_width =
match background_color_extends_to_terminal_width {
Expand Down

0 comments on commit 5b26209

Please sign in to comment.