From b7ff171d4bd05a8a62fd33aa71e962b03f992c2f Mon Sep 17 00:00:00 2001 From: Gabriel Fu Date: Fri, 14 Jun 2024 10:45:52 +0800 Subject: [PATCH] Update table.go --- table/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/table.go b/table/table.go index 0bdd6d7c..3b8d3e22 100644 --- a/table/table.go +++ b/table/table.go @@ -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