@@ -447,8 +447,10 @@ impl<'a> Printer for InteractivePrinter<'a> {
447447
448448 if text.len() != text_trimmed.len() {
449449 if let Some(background_color) = background_color {
450− let mut ansi_style = Style::default();
451− ansi_style.background = to_ansi_color(background_color, true_color);
450+ let ansi_style = Style {
451+ background: to_ansi_color(background_color, true_color),
452+ ..Default::default()
453+ };
452454 let width = if cursor_total <= cursor_max {
453455 cursor_max - cursor_total + 1
454456 } else {
@@ -588,8 +590,10 @@ impl<'a> Printer for InteractivePrinter<'a> {
588590 }
589591
590592 if let Some(background_color) = background_color {
591− let mut ansi_style = Style::default();
592− ansi_style.background = to_ansi_color(background_color, self.config.true_color);
593+ let ansi_style = Style {
594+ background: to_ansi_color(background_color, self.config.true_color),
595+ ..Default::default()
596+ };
593597
594598 write!(
595599 handle,