go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit 9e6febe7b6010f9b2d50e1d3d0c130cfa35a5da9
parent 83a3c6e4eb67f4da6b8d15d55db95790397161f0
Author: lash <dev@holbrook.no>
Date:   Thu, 26 Sep 2024 03:59:09 +0100

Correct associativity bug in newline add in render

Diffstat:
Mrender/page.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/render/page.go b/render/page.go @@ -259,7 +259,7 @@ func(pg *Page) joinSink(sinkValues []string, remaining uint32, menuSizes [4]uint // BUG: this reserves the previous browse before we know we need it if len(sinkValues) > 1 { - netRemaining -= menuSizes[1] - 1 + netRemaining -= (menuSizes[1] + 1) } for i, v := range sinkValues { @@ -276,7 +276,7 @@ func(pg *Page) joinSink(sinkValues []string, remaining uint32, menuSizes [4]uint tb.Reset() l = len(v) if count == 0 { - netRemaining -= menuSizes[2] + netRemaining -= (menuSizes[2] + 1) } count += 1 }