diff options
Diffstat (limited to 'pkg/field/field.go')
-rw-r--r-- | pkg/field/field.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |