From 19492ac1fe42d7eeb2d729c3c3ce1d06d3b99578 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 15 Aug 2021 08:43:31 -0400 Subject: [PATCH] Add trailing slash in completion of symlinked dir --- crates/nu-completion/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-completion/src/path.rs b/crates/nu-completion/src/path.rs index 79c32d343374..801194ad0d9e 100644 --- a/crates/nu-completion/src/path.rs +++ b/crates/nu-completion/src/path.rs @@ -41,7 +41,7 @@ impl PathCompleter { let mut file_name = entry.file_name().to_string_lossy().into_owned(); if matcher.matches(partial, file_name.as_str()) { let mut path = format!("{}{}", &base_dir_name, file_name); - if entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false) { + if entry.path().is_dir() { path.push(SEP); file_name.push(SEP); }