compose: set format flowed if configured in pager

This commit is contained in:
Manos Pitsidianakis 2020-11-24 02:12:42 +02:00
parent f9ce5327c2
commit ebc290cc2a
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -188,6 +188,10 @@ impl Composer {
format!("meli {}", option_env!("CARGO_PKG_VERSION").unwrap_or("0.0")), 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 ret
} }