mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Fix minor color bug
If we are not using RED then the Color should be the terminal default not 7
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
extern crate ansi_term;
|
||||
|
||||
use self::ansi_term::Colour::Fixed;
|
||||
use self::ansi_term::Style;
|
||||
use std::collections::HashSet;
|
||||
|
||||
static UNITS: [char; 4] = ['T', 'G', 'M', 'K'];
|
||||
@@ -171,7 +172,7 @@ pub fn format_string(
|
||||
if is_biggest {
|
||||
Fixed(196).paint(size)
|
||||
} else {
|
||||
Fixed(7).paint(size)
|
||||
Style::new().paint(size)
|
||||
},
|
||||
indentation,
|
||||
printable_name,
|
||||
|
||||
Reference in New Issue
Block a user