Point a read at the pins it drew only where it walked a path

This commit is contained in:
2026-09-27 23:55:28 +02:00
committed by Lillem4n
parent c0754abfca
commit 270aa41dfb
+3 -1
View File
@@ -41,7 +41,9 @@ func readField(s *session, t *template, held *hold, sc renderScope, a arm) draw
if r, done := d.value[a.path]; done { if r, done := d.value[a.path]; done {
return r return r
} }
sc.pins = &d.pins if len(a.tail) > 0 {
sc.pins = &d.pins
}
r := renderLeaf(s, drawPath(t.head(a.key), a.tail, a.key, &d.pins, &pathDraws{s: s, held: d, a: &a}), sc) r := renderLeaf(s, drawPath(t.head(a.key), a.tail, a.key, &d.pins, &pathDraws{s: s, held: d, a: &a}), sc)
if d.value == nil { if d.value == nil {
d.value = map[string]draw{} d.value = map[string]draw{}