Skip to content

Commit

Permalink
Show hidden files in filename completer (#648)
Browse files Browse the repository at this point in the history
also removes unnecessary clone
  • Loading branch information
stuarth authored Aug 26, 2021
1 parent dc57f8d commit 6192f2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-term/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 6192f2f

Please sign in to comment.