compose: set format flowed if configured in pager

jmap-eventsource
Manos Pitsidianakis 2020-11-24 02:12:42 +02:00
parent f9ce5327c2
commit ebc290cc2a
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ impl Composer {
format!("meli {}", option_env!("CARGO_PKG_VERSION").unwrap_or("0.0")),
);
}
if *account_settings!(context[account_hash].composing.format_flowed) {
ret.pager
.set_reflow(melib::text_processing::Reflow::FormatFlowed);
}
ret
}