We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9905785 + d2adf3e commit 8f4b698Copy full SHA for 8f4b698
src/render/tree/node.rs
@@ -197,11 +197,11 @@ impl Node {
197
198
let path = self.symlink_target_path().unwrap_or_else(|| self.path());
199
200
- if let Some(icon) = path.extension().and_then(icon_from_ext) {
+ if let Some(icon) = self.file_type().and_then(icon_from_file_type) {
201
return Some(self.stylize(icon));
202
}
203
204
- if let Some(icon) = self.file_type().and_then(icon_from_file_type) {
+ if let Some(icon) = path.extension().and_then(icon_from_ext) {
205
206
207
0 commit comments