diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-04-30 16:42:57 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-04-30 16:42:57 -0400 |
commit | 5b2620981bc5d3f4eb13b6b24782e78cfb9f7673 (patch) | |
tree | f7a7a5b9cbb823faeca5bd475f0c37b561990a76 /src/paint.rs | |
parent | 3e46301b48aba1ca9c2e4a9228cf591969b20849 (diff) |
Ensure that line is in normal background state before filling right
Thanks @da-x
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/paint.rs b/src/paint.rs index ef88d7d5..a82ecc4a 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -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 { |