Build the draw fence's fold with the fence, deleting its lazy accessor

This commit is contained in:
2026-09-29 21:27:23 +02:00
committed by Lillem4n
parent a222fb985e
commit 42c443bd5a
2 changed files with 4 additions and 11 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ func checkNodeFences(s nodeScope) error {
if err := s(heldCheck); err != nil {
return err
}
fence := &drawFence{}
fence := &drawFence{fold: newReadFold()}
refs := false
if err := s(func(path string, n node) error {
if t, ok := n.(*template); ok && len(t.link.refs) > 0 {