Prevent sub overflow in EnvelopeView

async
Manos Pitsidianakis 2020-06-10 18:07:37 +03:00
parent 05c6c19889
commit 7dc8a87a62
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ impl Component for EnvelopeView {
if self.mode == ViewMode::Raw {
clear_area(grid, area, crate::conf::value(context, "theme_default"));
context.dirty_areas.push_back(area);
get_y(upper_left) - 1
get_y(upper_left).saturating_sub(1)
} else {
let (x, y) = write_string_to_grid(
&format!("Date: {}", envelope.date_as_str()),