mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
Add trailing slash in completion of symlinked dir (#3921)
This commit is contained in:
parent
65c639cf13
commit
ab961a78cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue