aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/blank.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/field/blank.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/field/blank.go b/pkg/field/blank.go
index 2c30b6e..f1ac8b5 100644
--- a/pkg/field/blank.go
+++ b/pkg/field/blank.go
@@ -86,6 +86,9 @@ func (f *Field) Blank(x, y int) {
f.x = f.lines[0].x
x2 := f.lines[0].l + f.lines[0].x
for i := 1; i < f.ly; i++ {
+ if f.lines[i].l == 0 {
+ continue
+ }
if f.x > f.lines[i].x {
f.x = f.lines[i].x
}