Fix table horizontal separator bug.

This commit is contained in:
Varun Batra 2017-07-09 21:30:34 +05:30 committed by GitHub
parent 72304ddb9b
commit 96f60f23b6

View File

@ -176,7 +176,7 @@ func (table *Table) Buffer() Buffer {
if table.Separator {
border := DefaultTxBuilder.Build(strings.Repeat("─", table.Width-2), table.FgColor, table.BgColor)
for i, cell := range border {
buffer.Set(i+1, pointerY+1, cell)
buffer.Set(table.innerArea.Min.X+i, pointerY+1, cell)
}
}
}