Fixed Table cell background colors for column-only selections.

This commit is contained in:
Oliver 2018-01-17 09:34:45 +01:00
parent e349b48fe4
commit 95e3124245
1 changed files with 3 additions and 0 deletions

View File

@ -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))
}