mailview: don't process_event if coordinates uninitialised

jmap-eventsource
Manos Pitsidianakis 4 years ago
parent be45b0c02d
commit bc74379b27
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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