Browse Source

mailview: don't process_event if coordinates uninitialised

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
bc74379b27
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 3
      src/components/mail/view.rs

3
src/components/mail/view.rs

@ -1402,6 +1402,9 @@ impl Component for MailView {
}
fn process_event(&mut self, mut event: &mut UIEvent, context: &mut Context) -> bool {
if self.coordinates.0 == 0 || self.coordinates.1 == 0 {
return false;
}
let shortcuts = self.get_shortcuts(context);
match (&mut self.mode, &mut event) {
/*(ViewMode::Ansi(ref mut buf), _) => {

Loading…
Cancel
Save