Fix background color when rendering filenames (#1849)
This commit is contained in:
1 parent
23bef4dc0b
commit
f0dddccb04
1 file changed
+5
-2
@@ -528,7 +528,9 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty
|
|||||||
line = append(line, ' ')
|
line = append(line, ' ')
|
||||||
win.print(ui.screen, lnwidth+2, i, st, fmt.Sprintf(cursorFmt, string(line)))
|
win.print(ui.screen, lnwidth+2, i, st, fmt.Sprintf(cursorFmt, string(line)))
|
||||||
} else {
|
} else {
|
||||||
if tag != " " {
|
if tag == " " {
|
||||||
|
win.print(ui.screen, lnwidth+1, i, st, " ")
|
||||||
|
} else {
|
||||||
tagStr := fmt.Sprintf(optionToFmtstr(gOpts.tagfmt), tag)
|
tagStr := fmt.Sprintf(optionToFmtstr(gOpts.tagfmt), tag)
|
||||||
win.print(ui.screen, lnwidth+1, i, tcell.StyleDefault, tagStr)
|
win.print(ui.screen, lnwidth+1, i, tcell.StyleDefault, tagStr)
|
||||||
}
|
}
|
||||||
@@ -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, 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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user