ui/compose: clear empty space area properly

embed
Manos Pitsidianakis 2019-10-23 13:38:03 +03:00
parent 6a8f869e5b
commit 72e301887f
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 12 additions and 1 deletions

View File

@ -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 */