diff options
author | Canop <cano.petrole@gmail.com> | 2021-02-22 16:43:02 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-02-22 16:43:02 +0100 |
commit | df9c63511c7d80f6e147fdf410af0eeda9be8ba3 (patch) | |
tree | c752d9b1d40767e2cad3ee7be2f0151e92224670 /src/display | |
parent | 4e035c40bd41a2f15adf1dae9953578440ef5084 (diff) |
fix style characters present even whit --no-style
Fix #346
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/displayable_tree.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/display/displayable_tree.rs b/src/display/displayable_tree.rs index fc2d6a1..ed4eb70 100644 --- a/src/display/displayable_tree.rs +++ b/src/display/displayable_tree.rs @@ -18,7 +18,6 @@ use { chrono::{DateTime, Local, TimeZone}, crossterm::{ cursor, - style::{Color, SetBackgroundColor}, QueueableCommand, }, file_size, @@ -396,7 +395,7 @@ impl<'s, 't> DisplayableTree<'s, 't> { let mut cw = CropWriter::new(f, self.area.width as usize); let pattern_object = tree.options.pattern.pattern.object(); self.write_root_line(&mut cw, self.in_app && tree.selection == 0)?; - f.queue(SetBackgroundColor(Color::Reset))?; + self.skin.queue_reset(f)?; let visible_cols = tree.visible_cols(); @@ -515,7 +514,7 @@ impl<'s, 't> DisplayableTree<'s, 't> { } } self.extend_line_bg(cw, selected)?; - //f.queue(SetBackgroundColor(Color::Reset))?; + self.skin.queue_reset(f)?; if self.in_app && y > 0 { if let Some((sctop, scbottom)) = scrollbar { f.queue(cursor::MoveTo(self.area.left + self.area.width - 1, y))?; |