mirror of https://github.com/helix-editor/helix
completion: remove_follow links on filename_impl
We don't need to follow links since we're only scanning the current directory level (non-recursive).pull/3609/head
parent
d2cec25395
commit
8a4fbf6daf
|
@ -381,7 +381,7 @@ pub mod completers {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: we could return an iter/lazy thing so it can fetch as many as it needs.
|
// TODO: we could return an iter/lazy thing so it can fetch as many as it needs.
|
||||||
fn filename_impl<F>(editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
|
fn filename_impl<F>(_editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
|
||||||
where
|
where
|
||||||
F: Fn(&ignore::DirEntry) -> FileMatch,
|
F: Fn(&ignore::DirEntry) -> FileMatch,
|
||||||
{
|
{
|
||||||
|
@ -413,7 +413,7 @@ pub mod completers {
|
||||||
|
|
||||||
let mut files: Vec<_> = WalkBuilder::new(&dir)
|
let mut files: Vec<_> = WalkBuilder::new(&dir)
|
||||||
.hidden(false)
|
.hidden(false)
|
||||||
.follow_links(editor.config().file_picker.follow_symlinks)
|
.follow_links(false) // We're scanning over depth 1
|
||||||
.max_depth(Some(1))
|
.max_depth(Some(1))
|
||||||
.build()
|
.build()
|
||||||
.filter_map(|file| {
|
.filter_map(|file| {
|
||||||
|
|
Loading…
Reference in New Issue