ui: don't check terminal size in ThreadView

This commit is contained in:
Manos Pitsidianakis 2019-08-17 12:56:11 +03:00
parent c0dcd7254a
commit 2610e9c055
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -864,11 +864,7 @@ impl fmt::Display for ThreadView {
impl Component for ThreadView {
fn draw(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context) {
let total_rows = height!(area);
let total_cols = width!(area);
if total_rows < 24 || total_cols < 80 {
return;
}
/* If user has selected another mail to view, change to it */
if self.new_expanded_pos != self.expanded_pos {