Add trailing slash in completion of symlinked dir
@@ -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);
}
