Merge pull request #158 from VarunBatraIT/master
Fix table horizontal separator bug.
This commit is contained in:
commit
e736b1bc24
2
table.go
2
table.go
@ -176,7 +176,7 @@ func (table *Table) Buffer() Buffer {
|
|||||||
if table.Separator {
|
if table.Separator {
|
||||||
border := DefaultTxBuilder.Build(strings.Repeat("─", table.Width-2), table.FgColor, table.BgColor)
|
border := DefaultTxBuilder.Build(strings.Repeat("─", table.Width-2), table.FgColor, table.BgColor)
|
||||||
for i, cell := range border {
|
for i, cell := range border {
|
||||||
buffer.Set(i+1, pointerY+1, cell)
|
buffer.Set(table.innerArea.Min.X+i, pointerY+1, cell)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user