From 5a9f63c51ef9af5912311fe0c93b6db6f9f23afe Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 24 Nov 2020 11:08:48 +0200 Subject: [PATCH] listing/compact: Fix off-by-one error in area calculation --- src/components/mail/listing/compact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mail/listing/compact.rs b/src/components/mail/listing/compact.rs index 0162d7d8..66c27eb0 100644 --- a/src/components/mail/listing/compact.rs +++ b/src/components/mail/listing/compact.rs @@ -753,7 +753,7 @@ impl ListingTrait for CompactListing { if top_idx + rows > self.length { clear_area( grid, - (pos_inc(upper_left, (0, rows)), bottom_right), + (pos_inc(upper_left, (0, rows - 1)), bottom_right), self.color_cache.theme_default, ); }