From 95e31242458247b33462d0da1725c71a436c4934 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Wed, 17 Jan 2018 09:34:45 +0100 Subject: [PATCH] Fixed Table cell background colors for column-only selections. --- table.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/table.go b/table.go index 0042040..f5a3f73 100644 --- a/table.go +++ b/table.go @@ -655,6 +655,9 @@ ColumnLoop: leftCell := getCell(row, column-1) if leftCell != nil { if cell.BackgroundColor == leftCell.BackgroundColor { + if t.columnsSelectable && column == t.selectedColumn { + bgColor = cell.BackgroundColor + } ch, _, style, _ := screen.GetContent(x+columnX, y+rowY) screen.SetContent(x+columnX, y+rowY, ch, nil, style.Background(bgColor)) }