Skip to content

Commit

Permalink
Fix background color when rendering filenames (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work authored Nov 14, 2024
1 parent 23bef4d commit f0dddcc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty
line = append(line, ' ')
win.print(ui.screen, lnwidth+2, i, st, fmt.Sprintf(cursorFmt, string(line)))
} else {
if tag != " " {
if tag == " " {
win.print(ui.screen, lnwidth+1, i, st, " ")
} else {
tagStr := fmt.Sprintf(optionToFmtstr(gOpts.tagfmt), tag)
win.print(ui.screen, lnwidth+1, i, tcell.StyleDefault, tagStr)
}
Expand All @@ -541,7 +543,8 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty
win.print(ui.screen, lnwidth+2, i, iconStyle, string(icon))
}

win.print(ui.screen, lnwidth+2+runeSliceWidth(icon), i, st, string(filename))
line := append(filename, ' ')
win.print(ui.screen, lnwidth+2+runeSliceWidth(icon), i, st, string(line))
}
}
}
Expand Down

0 comments on commit f0dddcc

Please sign in to comment.