aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-05 09:23:37 +0000
committerBlaž Hrastnik2021-04-05 09:23:37 +0000
commit95d0bba81ae8ed035399b2cb362d2f65481d4781 (patch)
treeaf8d35e7de2864abec5d4188bdb7a29fb2ef56c2 /helix-term/src/ui/picker.rs
parent59a0fc7b59186b3bedb01dd5b958d3b97b9fbba2 (diff)
ui: Improve completion state handling.
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 6ac35fba..ef2fe2a8 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -118,7 +118,7 @@ impl<T> Picker<T> {
// - on input change:
// - score all the names in relation to input
-impl<T> Component for Picker<T> {
+impl<T: 'static> Component for Picker<T> {
fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
let key_event = match event {
Event::Key(event) => event,