aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ui/grid.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/grid.go b/lib/ui/grid.go
index f505ce02..2d195711 100644
--- a/lib/ui/grid.go
+++ b/lib/ui/grid.go
@@ -123,6 +123,10 @@ func (grid *Grid) Draw(ctx *Context) {
cols := grid.columnLayout[cell.Column : cell.Column+cell.ColSpan]
x := cols[0].Offset
y := rows[0].Offset
+ if x < 0 || y < 0 {
+ continue
+ }
+
width := 0
height := 0
for _, col := range cols {