From 270aa41dfbc83b9398b3d62198be18048b2e7add Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 27 Sep 2026 23:55:28 +0200 Subject: [PATCH] Point a read at the pins it drew only where it walked a path --- hold.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hold.go b/hold.go index 312fae8..70033d2 100644 --- a/hold.go +++ b/hold.go @@ -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 { 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) if d.value == nil { d.value = map[string]draw{}