Merge pull request 'fix end line on non-consecutive ranges ending at the highest bit not being drawn' (#18) from ALVAROPING1/rivet-typst:dev into dev

Reviewed-on: HEL/rivet-typst#18
Reviewed-by: Louis Heredero <louis@herdac.ch>
This commit is contained in:
2026-06-05 14:43:48 +00:00

View File

@@ -474,9 +474,9 @@
shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col) shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col)
// paint end line only if needed // paint end line only if needed
let is-not-limit = if config.ltr-bits { start-i != 0 } else { end-i != struct.bits - 1 }
if ( if (
start-i != 0 is-not-limit
and end-i != struct.bits - 1
and ranges and ranges
.at( .at(
i i