Update table.go (#539)

This commit is contained in:
Gabriel Fu
2024-06-18 11:45:04 -04:00
committed by GitHub
parent c3e07c9b36
commit 36baf3d64e
+1 -1
View File
@@ -431,7 +431,7 @@ func (m *Model) renderRow(r int) string {
if m.styleFunc != nil {
cellStyle = m.styleFunc(r, i, value)
if r == m.cursor {
cellStyle.Inherit(m.styles.Selected)
cellStyle = cellStyle.Inherit(m.styles.Selected)
}
} else {
cellStyle = m.styles.Cell