@@ -38,7 +38,7 @@ pub fn regex_prompt(
38 let snapshot = doc.selection(view_id).clone();
38 let snapshot = doc.selection(view_id).clone();
39 let offset_snapshot = view.offset;
39 let offset_snapshot = view.offset;
41− Prompt::new(
41+ let mut prompt = Prompt::new(
43 history_register,
43 history_register,
44 completion_fn,
44 completion_fn,
@@ -91,7 +91,10 @@ pub fn regex_prompt(
95+ // Calculate initial completion
96+ prompt.recalculate_completion(cx.editor);
97pub fn file_picker(root: PathBuf, config: &helix_view::editor::Config) -> FilePicker<PathBuf> {
100pub fn file_picker(root: PathBuf, config: &helix_view::editor::Config) -> FilePicker<PathBuf> {