Drop table.fields for formatTemplate.fields

This commit is contained in:
2026-09-29 10:06:00 +02:00
committed by Lillem4n
parent ade2a7855f
commit 30d0f84ea4
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -438,8 +438,8 @@ func (t *table) step(tail []string) (column node, child *table, err error) {
if len(tail) == 0 {
return nil, nil, nil
}
if i, ok := t.col[tail[0]]; ok {
return t.fields[t.header[i]], nil, nil
if column, ok := t.formatTemplate.fields[tail[0]]; ok {
return column, nil, nil
}
if child = t.descendant(tail[0]); child == nil {
return nil, nil, fmt.Errorf("no column or linked table %q in %s", tail[0], t.segment)