aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-02-17 04:55:46 +0000
committerBlaž Hrastnik2022-02-17 05:02:42 +0000
commitaf21e2a5b491a18b22de7c99d96536bdaf741056 (patch)
tree807fc39fb87cd93c252b81fe76bb569a00532852 /helix-term/src/ui/picker.rs
parente023a78919be31a9d9747d3735dfd29dd6c6605d (diff)
Pass through Editor instead of Context
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index dcc64002..622af387 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -1,7 +1,7 @@
use crate::{
compositor::{Component, Compositor, Context, EventResult},
ctrl, key, shift,
- ui::EditorView,
+ ui::{self, EditorView},
};
use crossterm::event::Event;
use tui::{
@@ -302,7 +302,7 @@ impl<T> Picker<T> {
let prompt = Prompt::new(
"".into(),
None,
- |_ctx: &Context, _pattern: &str| Vec::new(),
+ ui::completers::none,
|_editor: &mut Context, _pattern: &str, _event: PromptEvent| {
//
},