Make walkEvery the zero mode, and have drawPath's panic name the head its tail descends from

This commit is contained in:
2026-09-25 08:08:43 +02:00
committed by Lillem4n
parent eecfb7ab54
commit c63b1c74dd
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func readField(s *session, t *template, held *hold, sc renderScope, a arm) draw
if r, done := d.value[a.path]; done {
return r
}
r := renderLeaf(s, drawPath(t.head(a.key), a.tail, &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 {
d.value = map[string]draw{}
}