From 9b83b4c4a845fedf7c8c6e005026f635f121e17b Mon Sep 17 00:00:00 2001 From: ALVAROPING1 Date: Fri, 5 Jun 2026 14:45:34 +0200 Subject: [PATCH] fix end line on non-consecutive ranges ending at the highest bit not being drawn --- src/renderer.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer.typ b/src/renderer.typ index 88478ca..ec0c3d3 100644 --- a/src/renderer.typ +++ b/src/renderer.typ @@ -474,9 +474,9 @@ shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col) // paint end line only if needed + let is-not-limit = if config.ltr-bits { start-i != 0 } else { end-i != struct.bits - 1 } if ( - start-i != 0 - and end-i != struct.bits - 1 + is-not-limit and ranges .at( i