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.
This commit is contained in:
@@ -387,8 +387,10 @@
|
|||||||
}
|
}
|
||||||
let range-boundaries = ()
|
let range-boundaries = ()
|
||||||
for r in struct.ranges.values() {
|
for r in struct.ranges.values() {
|
||||||
let i = to-real-i(if config.ltr-bits {r.start} else {r.end})
|
let start-i = to-real-i(if config.ltr-bits {r.start} else {r.end})
|
||||||
range-boundaries.push(i)
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw colors
|
// Draw colors
|
||||||
|
|||||||
Reference in New Issue
Block a user