Aim a path token's render edge at what it renders

This commit is contained in:
M
2026-08-30 21:44:35 +02:00
committed by lilleman-tw
parent 1987deb14c
commit 32b9aa5c81
3 changed files with 33 additions and 11 deletions
+1 -3
View File
@@ -190,9 +190,7 @@ func resolve(s *session, arms []arm, t *template, bound *draws) string {
bound.variant[a.key] = n
}
// Hold the draw at every level passed through, so two paths sharing a prefix
// share it. The leaf needs no hold: no other token can name it, since
// checkNoOverlap rejects a field or calc spelling and checkNotBound a
// reference one.
// share it.
for i, seg := range a.tail {
if i < len(a.steps) {
held, drew := bound.variant[a.steps[i]]