Fixed Table cell background colors for column-only selections.

pull/40/head
Oliver 7 years ago
parent e349b48fe4
commit 95e3124245

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

Loading…
Cancel
Save