Treat a column's cells as alternatives in the family fence, probe a path before drawing, and record that two categories may name one TSV
Tests / vet + fmt + tests (pull_request) Successful in 1m6s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped

This commit is contained in:
2026-09-17 15:39:07 +02:00
parent 1ab3bbce30
commit d8c348d07b
5 changed files with 65 additions and 12 deletions
+5
View File
@@ -43,6 +43,11 @@ func (f *Generator) Fake(path string) (string, error) {
// carries before a variant is picked — a path that resolves at all resolves on
// every call.
func descend(s *session, root node, segments []string, sc drawScope) (node, error) {
// Walked once without drawing first, so a path that fails moves no seeded stream.
var probe draws
if _, err := walkPath(root, segments, pathWalk{pins: &probe}); err != nil {
return nil, err
}
return walkPath(root, segments, pathWalk{pins: sc.draws(s)})
}