From 51db5b6c2f41dfe5669d18a0b33e25f378538e3a Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sat, 12 Sep 2020 23:08:09 +0300 Subject: [PATCH] listing/conversations: redraw selection undo on Esc --- src/components/mail/listing/conversations.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/mail/listing/conversations.rs b/src/components/mail/listing/conversations.rs index a415254f..e5a5bd35 100644 --- a/src/components/mail/listing/conversations.rs +++ b/src/components/mail/listing/conversations.rs @@ -1580,8 +1580,11 @@ impl Component for ConversationsListing { if !self.unfocused && self.selection.values().cloned().any(std::convert::identity) => { - for v in self.selection.values_mut() { - *v = false; + for (k, v) in self.selection.iter_mut() { + if *v { + *v = false; + self.row_updates.push(*k); + } } self.dirty = true; return true;