From 0038f88327dacd8d1d973de0f09992852402881c Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 26 Sep 2021 19:29:00 +0200 Subject: Fixes some mycology test suite errors --- pkg/field/field.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/field/field.go') diff --git a/pkg/field/field.go b/pkg/field/field.go index fbe987a..a31f4da 100644 --- a/pkg/field/field.go +++ b/pkg/field/field.go @@ -41,8 +41,8 @@ func Load(fd io.Reader) (*Field, error) { } if l.l > 0 { f.ly++ - if f.lx < l.l { - f.lx = l.l + if f.lx-f.x < l.l-l.x { + f.lx = l.l - l.x + f.x } f.lines = append(f.lines, *l) } -- cgit v1.2.3