ui/compose: clear empty space area properly

pull/234/head
Manos Pitsidianakis 5 years ago
parent 6a8f869e5b
commit 72e301887f
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -471,7 +471,7 @@ impl Component for Composer {
Color::Byte(189),
Color::Byte(167),
);
if mid != 0 {
if mid != 0 && self.reply_context.is_none() {
clear_area(
grid,
(
@ -489,6 +489,17 @@ impl Component for Composer {
bottom_right,
),
);
} else if mid != 0 {
clear_area(
grid,
(
(
get_x(bottom_right).saturating_sub(mid),
get_y(upper_left) - 1,
),
(get_x(bottom_right).saturating_sub(mid), get_y(bottom_right)),
),
);
}
/* Regardless of view mode, do the following */

Loading…
Cancel
Save