Give render and the draw fences one pin set

This commit is contained in:
2026-09-24 00:17:01 +02:00
committed by Lillem4n
parent 968d79399d
commit 3927dc9fa5
17 changed files with 279 additions and 284 deletions
+3 -3
View File
@@ -524,8 +524,8 @@ func (t *table) under(r int, a *table, pr int) bool {
}
// find is the row a selector names: by key first, then by name, where a name
// naming several rows resolves inside the ancestors pinned in d.
func (t *table) find(sel string, d *hold) (int, error) {
// naming several rows resolves inside the ancestors pinned.
func (t *table) find(sel string, pins *pinSet) (int, error) {
if t.key < 0 && t.name < 0 {
return 0, fmt.Errorf("%s has no key or name column to select a row by", t.path)
}
@@ -534,7 +534,7 @@ func (t *table) find(sel string, d *hold) (int, error) {
}
rows := t.indexed().byName[sel]
if len(rows) > 1 {
rows = d.inside(t, rows)
rows = pins.inside(t, rows)
}
switch len(rows) {
case 1: