Unnamed repository; edit this file 'description' to name the repository.
Add filename autocomplete to template args
Dmitry Sharshakov 2021-08-28
parent e315394 · commit ef155e6
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 6428870e..fc7f32cc 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -736,7 +736,7 @@ impl EditorView {
let prompt = Prompt::new(
"arg:".to_owned(),
None,
- |_input: &str| Vec::new(), // this is fine because Vec::new() doesn't allocate
+ super::completers::filename,
move |cx: &mut crate::compositor::Context,
input: &str,
event: PromptEvent| {