Hold every whole draw's row a walk is in, so a nested whole draw keeps the outer one's

This commit is contained in:
2026-09-25 08:31:25 +02:00
committed by Lillem4n
parent b0889faa14
commit 3500f8e1c3
4 changed files with 21 additions and 25 deletions
+1 -12
View File
@@ -219,15 +219,4 @@ func checkOwnFamily(t *template) error {
// alternatives reports whether two reads sit in different rows of one table: rows the walks pinned,
// or rows of one whole draw.
// docs/decisions.md#the-rows-of-a-table-are-alternatives
func alternatives(a, b drawAt) bool {
if a.whole.t != nil && a.whole.t == b.whole.t && a.whole.row != b.whole.row {
return true
}
found := false
a.alt.each(func(t *table, r int) {
if br, in := b.alt.pinned(t); in && br != r {
found = true
}
})
return found
}
func alternatives(a, b drawAt) bool { return a.alt.differs(&b.alt) || a.whole.differs(&b.whole) }