1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-24 13:48:56 +08:00

Minor bugfix.

This commit is contained in:
Oliver 2018-01-01 17:17:32 +01:00
parent 997b92f1b4
commit 759602af1b

View File

@ -561,7 +561,7 @@ ColumnLoop:
}
// Draw right border.
if t.borders && columnX < width {
if t.borders && len(t.cells) > 0 && columnX < width {
for rowY, row := range rows {
rowSelected := t.rowsSelectable && !t.columnsSelectable && row == t.selectedRow
rowY *= 2