diff --git a/README.md b/README.md index 7870fb7..79b450d 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,6 @@ Feel free to add a new one. You can use 256 colors, bold, underline, and reverse - zooming in and out of graphs - add gif - gopsutil issue for darwin i386 - - grid should create a filled buffer so that bg is written everywhere * cleaning up code - termui Blocks should ignore writing to the outside area - Ignore writes to outside of inner area, or give error? diff --git a/termui/grid.go b/termui/grid.go index 052cd03..b0eb7e4 100644 --- a/termui/grid.go +++ b/termui/grid.go @@ -44,7 +44,7 @@ func (g *Grid) Resize() { // Buffer implements Bufferer interface. func (g *Grid) Buffer() *Buffer { - buf := NewBuffer() + buf := NewFilledBuffer(0, 0, g.Width, g.Height, Cell{' ', ColorDefault, Theme.Bg}) for _, w := range g.Widgets { buf.MergeWithOffset(w.Buffer(), w.GetXOffset(), w.GetYOffset()) }