Browse Source

compose: use melib::Bytes pretty print for attachment size

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
39fab67523
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 6
      src/components/mail/compose.rs

6
src/components/mail/compose.rs

@ -532,11 +532,11 @@ impl Composer {
if let Some(name) = a.content_type().name() {
write_string_to_grid(
&format!(
"[{}] \"{}\", {} {} bytes",
"[{}] \"{}\", {} {}",
i,
name,
a.content_type(),
a.raw.len()
melib::Bytes(a.raw.len())
),
grid,
theme_default.fg,
@ -547,7 +547,7 @@ impl Composer {
);
} else {
write_string_to_grid(
&format!("[{}] {} {} bytes", i, a.content_type(), a.raw.len()),
&format!("[{}] {} {}", i, a.content_type(), melib::Bytes(a.raw.len())),
grid,
theme_default.fg,
theme_default.bg,

Loading…
Cancel
Save