diff options
author | Charlie Groves | 2022-08-29 00:48:49 +0000 |
---|---|---|
committer | GitHub | 2022-08-29 00:48:49 +0000 |
commit | f38ede8631b083c1c74d31b7658ad162d31c3972 (patch) | |
tree | 58e93b5bf7a330b9d60a2c1c5a52d67fcd32971f /helix-term/src/ui/menu.rs | |
parent | 51b62230da81913564692482d8f365e27d6f6cec (diff) |
Add bracketed paste (#3233)
Diffstat (limited to 'helix-term/src/ui/menu.rs')
-rw-r--r-- | helix-term/src/ui/menu.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs index ce51ecbc..1d247b1a 100644 --- a/helix-term/src/ui/menu.rs +++ b/helix-term/src/ui/menu.rs @@ -225,9 +225,9 @@ impl<T: Item> Menu<T> { use super::PromptEvent as MenuEvent; impl<T: Item + 'static> Component for Menu<T> { - fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult { + fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult { let event = match event { - Event::Key(event) => event, + Event::Key(event) => *event, _ => return EventResult::Ignored(None), }; |