From 36baf3d64ee64d2768c65c516701493d9a271232 Mon Sep 17 00:00:00 2001 From: Gabriel Fu Date: Tue, 18 Jun 2024 23:45:04 +0800 Subject: [PATCH] Update table.go (#539) --- table/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/table.go b/table/table.go index 0bdd6d7..3b8d3e2 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