This commit is contained in:
Kovid Goyal
2025-05-21 22:29:05 +05:30
parent 646bf47a43
commit f0537198e6
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ func (h *Handler) draw_results_title() {
if len(tt) < len(text) {
text = wcswidth.TruncateToVisualLength(text, available_width-1)
}
text = fmt.Sprintf(" %c %s ", icons.FOLDER, h.lp.SprintStyled("fg=intense-white bold", text))
text = fmt.Sprintf(" %s %s ", h.lp.SprintStyled("fg=blue", string(icons.FOLDER)+" "), h.lp.SprintStyled("fg=intense-white bold", text))
extra := available_width - wcswidth.Stringwidth(text)
x := 3
if extra > 1 {

View File

@@ -1089,7 +1089,7 @@ func IconForPath(path string) string {
return string(ans)
}
if _, ext, found := strings.Cut(bn, "."); found {
if ans, found := FileNameMap()[strings.ToLower(ext)]; found {
if ans, found := ExtensionMap()[strings.ToLower(ext)]; found {
return string(ans)
}
}