Skip to content

Commit 4b06f5d

Browse files
fix: directory name ending with extention are not prepended with ext icons
1 parent d2538a6 commit 4b06f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/icon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl Icons {
4545
FileType::CharDevice => &t.filetype.device_char,
4646
FileType::BlockDevice => &t.filetype.device_block,
4747
FileType::Special => &t.filetype.special,
48+
FileType::Directory { .. } => &t.filetype.dir,
4849
_ => {
4950
if let Some(icon) = t.name.get(name.file_name().to_lowercase().as_str()) {
5051
icon
@@ -55,7 +56,6 @@ impl Icons {
5556
icon
5657
} else {
5758
match file_type {
58-
FileType::Directory { .. } => &t.filetype.dir,
5959
// If a file has no extension and is executable, show an icon.
6060
// Except for Windows, it marks everything as an executable.
6161
#[cfg(not(windows))]

0 commit comments

Comments
 (0)