diff --git a/table.go b/table.go index 0ac6360..7cf4df6 100644 --- a/table.go +++ b/table.go @@ -1329,6 +1329,9 @@ func (t *Table) InputHandler() func(event *tcell.EventKey, setFocus func(p Primi previouslySelectedRow, previouslySelectedColumn := t.selectedRow, t.selectedColumn lastColumn := t.content.GetColumnCount() - 1 rowCount := t.content.GetRowCount() + if rowCount == 0 { + return // No movement on empty tables. + } var ( previous = func() { startRow := t.selectedRow