2 Commits

Author SHA1 Message Date
3a0331f33b fixup! prevent drawing separators on starting lines of fields 2025-11-24 09:17:36 +01:00
1ed60e6bfe prevent drawing separators on starting lines of fields
On non-consecutive ranges, we were drawing the starting line _on top_ of
the separator, which lead to some visual glitches in some viewers.
2025-11-20 10:01:10 +01:00

View File

@@ -387,9 +387,12 @@
}
let range-boundaries = ()
for r in struct.ranges.values() {
let i = to-real-i(if config.ltr-bits {r.start} else {r.end})
range-boundaries.push(i)
let start-i = to-real-i(if config.ltr-bits {r.start} else {r.end})
let end-i = to-real-i(if config.ltr-bits {r.end} else {r.start}) + 1
range-boundaries.push(start-i)
range-boundaries.push(end-i)
}
range-boundaries = range-boundaries.dedup()
// Draw colors
for i in range(struct.bits) {