Start every render from the zero hold set

This commit is contained in:
2026-09-28 18:45:07 +02:00
committed by Lillem4n
parent 1d73f1dc90
commit 1b9cf00a26
6 changed files with 12 additions and 17 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ func (p *valueProof) checkField(label string, ft reflect.Type, column node) erro
// fill draws the record into v's tagged fields, then each nested struct as a record of its own.
func (s *structShape) fill(sess *session, v reflect.Value) {
if s.record != nil {
set := eagerHoldSet()
var set holdSet
for i, c := range renderRecord(sess, s.record, s.columns, renderScope{set: &set}).columns {
setColumn(fieldAt(v, s.fieldIndexes[i]), c)
}