diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index 0dbb3a24e..572c651b2 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -80,14 +80,14 @@ impl Component for Popup { modifiers: KeyModifiers::CONTROL, } => { self.scroll(self.size.1 as usize / 2, true); - return EventResult::Consumed(None); + EventResult::Consumed(None) } KeyEvent { code: KeyCode::Char('u'), modifiers: KeyModifiers::CONTROL, } => { self.scroll(self.size.1 as usize / 2, false); - return EventResult::Consumed(None); + EventResult::Consumed(None) } _ => self.contents.handle_event(event, cx), }