Show hidden files in filename completer (#648)

also removes unnecessary clone
pull/656/head
Stuart Hinson 3 years ago committed by GitHub
parent dc57f8dc89
commit 6192f2fa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -228,7 +228,8 @@ pub mod completers {
let end = input.len()..; 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)) .max_depth(Some(1))
.build() .build()
.filter_map(|file| { .filter_map(|file| {

Loading…
Cancel
Save