From 749caa9e261d40c6af7f2516d3d3a3c30ae95f9a Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 1 Oct 2021 17:24:09 +0200 Subject: Fixed some more resizing bugs in certain situations not covered by mycology --- pkg/field/blank.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/field/blank.go') 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 } -- cgit v1.2.3