Show hidden files in filename completer (#648)

also removes unnecessary clone
This commit is contained in:
Stuart Hinson 2021-08-26 08:30:47 -07:00 committed by GitHub
parent dc57f8dc89
commit 6192f2fa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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| {