diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 560e91558..485ee8489 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -381,7 +381,7 @@ pub mod completers { } // TODO: we could return an iter/lazy thing so it can fetch as many as it needs. - fn filename_impl(editor: &Editor, input: &str, filter_fn: F) -> Vec + fn filename_impl(_editor: &Editor, input: &str, filter_fn: F) -> Vec where F: Fn(&ignore::DirEntry) -> FileMatch, { @@ -413,7 +413,7 @@ pub mod completers { let mut files: Vec<_> = WalkBuilder::new(&dir) .hidden(false) - .follow_links(editor.config().file_picker.follow_symlinks) + .follow_links(false) // We're scanning over depth 1 .max_depth(Some(1)) .build() .filter_map(|file| {