1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

Fix lack of icon assignation when extension don't match capitalization

This commit is contained in:
hasecilu
2024-08-08 15:18:02 -06:00
parent a3560eb451
commit cb53e377a8

View File

@ -2,6 +2,7 @@ package icons
import (
"path/filepath"
"strings"
)
// NOTE: Visit next links for inspiration:
@ -728,7 +729,7 @@ func IconForFile(name string, isSubmodule bool, isLinkedWorktree bool, isDirecto
return icon
}
ext := filepath.Ext(name)
ext := strings.ToLower(filepath.Ext(name))
if icon, ok := extIconMap[ext]; ok {
return icon
}