diff options
Diffstat (limited to 'src/filesystems/mount_space_display.rs')
-rw-r--r-- | src/filesystems/mount_space_display.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filesystems/mount_space_display.rs b/src/filesystems/mount_space_display.rs index ec914b6..1cd105d 100644 --- a/src/filesystems/mount_space_display.rs +++ b/src/filesystems/mount_space_display.rs @@ -106,10 +106,9 @@ impl<'m, 's> MountSpaceDisplay<'m, 's> { } if e_bar { let pb = ProgressBar::new(s.use_share() as f32, w_bar); + cw.w.queue(ResetColor {})?; if let Some(bg_color) = bg { cw.w.queue(SetBackgroundColor(bg_color))?; - } else { - cw.w.queue(ResetColor {})?; } cw.queue_unstyled_char(' ')?; cw.w.queue(SetBackgroundColor(share_color))?; @@ -126,7 +125,7 @@ impl<'m, 's> MountSpaceDisplay<'m, 's> { // there's not much to print if there's no size info cw.queue_g_string(&txt_style, format!(" {}", &self.mount.info.fs))?; } - + cw.w.queue(ResetColor {})?; Ok(()) } } |