aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-08-30 03:23:49 +0000
committerBlaž Hrastnik2022-08-30 03:23:49 +0000
commit8a4fbf6daf980b08de83e936c4a2b4bf8beaa2d4 (patch)
treee5b4292111f35f6f65f92fc626d2af4fec789262 /helix-term/src/ui
parentd2cec25395e01ded0977c1314e377cb24186c6c5 (diff)
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).
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs
index 560e9155..485ee848 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<F>(editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
+ fn filename_impl<F>(_editor: &Editor, input: &str, filter_fn: F) -> Vec<Completion>
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| {