From 6192f2fa250e3aa10e514547c69ae901aebed657 Mon Sep 17 00:00:00 2001 From: Stuart Hinson Date: Thu, 26 Aug 2021 08:30:47 -0700 Subject: [PATCH] Show hidden files in filename completer (#648) also removes unnecessary clone --- helix-term/src/ui/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index e48713121..f3f8670e2 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -228,7 +228,8 @@ pub mod completers { let end = input.len()..; - let mut files: Vec<_> = WalkBuilder::new(dir.clone()) + let mut files: Vec<_> = WalkBuilder::new(&dir) + .hidden(false) .max_depth(Some(1)) .build() .filter_map(|file| {