summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-21 10:39:19 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-21 10:39:19 -0800
commit88dbb6a45353e0bec2fcf60e1d49e4743eb50650 (patch)
tree5770db696786c5fac48b21206f185248c3a86de0
parent4deb42706c1af3aa81044112593d002f18f733c5 (diff)
Fixed theme bg color missing spots
-rw-r--r--README.md1
-rw-r--r--termui/grid.go2
2 files changed, 1 insertions, 2 deletions
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())
}