Merge pull request #734 from imsofi/master

Fix icons for symlinked directories
This commit is contained in:
Benjamin Sago 2020-10-08 22:41:59 +01:00 committed by GitHub
commit 9240dbdef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ pub fn painted_icon(file: &File, style: &FileStyle) -> String {
fn icon(file: &File) -> char {
let extensions = Box::new(FileExtensions);
if file.is_directory() { '\u{f115}' }
if file.points_to_directory() { '\u{f115}' }
else if let Some(icon) = extensions.icon_file(file) { icon }
else if let Some(ext) = file.ext.as_ref() {
match ext.as_str() {