Prevent sub overflow in EnvelopeView

pull/234/head
Manos Pitsidianakis 4 years ago
parent 05c6c19889
commit 7dc8a87a62
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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()),

Loading…
Cancel
Save