mirror of
https://github.com/nushell/nushell.git
synced 2025-04-01 03:36:53 +02:00
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() {
|
match byte.get_unit() {
|
||||||
byte_unit::ByteUnit::B => {
|
byte_unit::ByteUnit::B => {
|
||||||
let locale_byte = byte.get_value() as u64;
|
let locale_byte = byte.get_value() as u64;
|
||||||
(b::primitive(locale_byte.to_formatted_string(&Locale::en))
|
let locale_byte_string = locale_byte.to_formatted_string(&Locale::en);
|
||||||
+ b::space()
|
if filesize_format.1 == "auto" {
|
||||||
+ b::kind("B"))
|
(b::primitive(locale_byte_string) + b::space() + b::kind("B")).group()
|
||||||
.group()
|
} else {
|
||||||
|
(b::primitive(locale_byte_string)).group()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => b::primitive(byte.format(1)),
|
_ => b::primitive(byte.format(1)),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user