fix(windows): use isExecutable for icon and color lookup (#2448)

* fix(windows): use `isExecutable` for icon and color lookup

* perf(windows): avoid re-parsing `PATHEXT` in `isExecutable`

* docs: update `CHANGELOG.md`
This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-03-21 04:09:20 +01:00
1 parent f1a1097db5
commit 551f9d3418
4 files changed
+19 -7

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ func (im iconMap) get(f *file) iconDef {
key = "su"
case f.Mode()&os.ModeSetgid != 0:
key = "sg"
case f.Mode()&0o111 != 0:
case isExecutable(f.FileInfo):
key = "ex"
}