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
+4 -1
View File
@@ -189,12 +189,15 @@ func (w pathWalk) atLeaf(n node) error {
// by the pins' session where the walk names no choice action.
func walkChoice(c *choice, tail []string, w pathWalk) (node, error) {
if w.choice == nil {
if w.pins == nil || w.pins.s == nil {
if w.pins == nil {
return nil, nil
}
if err := carriedByAll(c, tail); err != nil {
return nil, err
}
if w.pins.s == nil { // a probe: every variant carries the tail, so any one proves it
return walkPath(c.items[0], tail, w)
}
return walkPath(pick(w.pins.s, c), tail, w)
}
next, err := w.choice(c, tail)