Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/popup.rs')
-rw-r--r--helix-term/src/ui/popup.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs
index 95d55d0a..873d8540 100644
--- a/helix-term/src/ui/popup.rs
+++ b/helix-term/src/ui/popup.rs
@@ -1,8 +1,7 @@
use crate::{
- compositor::{Callback, Component, Context, EventResult, RenderContext},
+ compositor::{Callback, Component, Context, Event, EventResult, RenderContext},
ctrl, key,
};
-use crossterm::event::Event;
use helix_core::Position;
use helix_view::{
@@ -124,7 +123,7 @@ impl<T: Component> Component for Popup<T> {
compositor.pop();
});
- match key.into() {
+ match key {
// esc or ctrl-c aborts the completion and closes the menu
key!(Esc) | ctrl!('c') => {
let _ = self.contents.handle_event(event, cx);