@@ -381,7 +381,7 @@ pub mod completers {
381381 }
382382
383383 // TODO: we could return an iter/lazy thing so it can fetch as many as it needs.
384− fn filename_impl<F>(editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
384+ fn filename_impl<F>(_editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
385385 where
386386 F: Fn(&ignore::DirEntry) -> FileMatch,
387387 {
@@ -413,7 +413,7 @@ pub mod completers {
413413
414414 let mut files: Vec<_> = WalkBuilder::new(&dir)
415415 .hidden(false)
416− .follow_links(editor.config().file_picker.follow_symlinks)
416+ .follow_links(false) // We're scanning over depth 1
417417 .max_depth(Some(1))
418418 .build()
419419 .filter_map(|file| {