Fix icons for symlinked directories

This commit is contained in:
imsofi 2020-09-08 22:27:39 +02:00
parent 78ba0b8973
commit 0a7ffcd042
No known key found for this signature in database
GPG Key ID: 79C2A151E68B3DAF

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() {