From 96f60f23b60787efd7a33a369a628df9c82f8422 Mon Sep 17 00:00:00 2001 From: Varun Batra Date: Sun, 9 Jul 2017 21:30:34 +0530 Subject: [PATCH] Fix table horizontal separator bug. --- table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table.go b/table.go index e3d1bbf..40351a5 100644 --- a/table.go +++ b/table.go @@ -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) } } }