Name the render's draws apart from the expansion hold: drawMemo, groupDraws, renderDraws

This commit is contained in:
2026-09-29 14:38:36 +02:00
committed by Lillem4n
parent 40f1129c23
commit b99966fe19
15 changed files with 106 additions and 107 deletions
+2 -2
View File
@@ -386,7 +386,7 @@ type formatOps struct {
ops []op
grow int
held map[string]firstReach
heldLocal bool // some held name is not a reference path, so expand makes a hold
keepsHold bool // some held name is not a reference path, so expand makes a hold
}
// firstReach is how a format first reaches a held name: the reader holding it, for
@@ -401,7 +401,7 @@ func (c *formatOps) holdName(a arm, label string) {
c.held = map[string]firstReach{}
}
if !isRef(a.head) || len(a.tail) == 0 {
c.heldLocal = true
c.keepsHold = true
}
h, seen := c.held[a.head]
if !seen {