Merge branch 'master' into v2-exp-table-tests

This commit is contained in:
Andrey Nering
2025-05-16 14:23:52 -03:00
21 changed files with 884 additions and 43 deletions
+5
View File
@@ -305,6 +305,11 @@ func (m Model) Columns() []Column {
// SetRows sets a new rows state.
func (m *Model) SetRows(r []Row) {
m.rows = r
if m.cursor > len(m.rows)-1 {
m.cursor = len(m.rows) - 1
}
m.UpdateViewport()
}