forked from extern/nushell
fixed a bug where 'B' wasn't showing up (#2690)
right when get_appropriate_unit was called
This commit is contained in:
parent
1eb28c6cb6
commit
3cf7652e86
@ -194,10 +194,12 @@ impl PrettyDebug for FormatInlineShape {
|
||||
match byte.get_unit() {
|
||||
byte_unit::ByteUnit::B => {
|
||||
let locale_byte = byte.get_value() as u64;
|
||||
(b::primitive(locale_byte.to_formatted_string(&Locale::en))
|
||||
+ b::space()
|
||||
+ b::kind("B"))
|
||||
.group()
|
||||
let locale_byte_string = locale_byte.to_formatted_string(&Locale::en);
|
||||
if filesize_format.1 == "auto" {
|
||||
(b::primitive(locale_byte_string) + b::space() + b::kind("B")).group()
|
||||
} else {
|
||||
(b::primitive(locale_byte_string)).group()
|
||||
}
|
||||
}
|
||||
_ => b::primitive(byte.format(1)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user