mirror of https://github.com/rivo/tview.git
This commit is contained in:
parent
96063d6082
commit
9994674d60
3
table.go
3
table.go
|
@ -1329,6 +1329,9 @@ func (t *Table) InputHandler() func(event *tcell.EventKey, setFocus func(p Primi
|
||||||
previouslySelectedRow, previouslySelectedColumn := t.selectedRow, t.selectedColumn
|
previouslySelectedRow, previouslySelectedColumn := t.selectedRow, t.selectedColumn
|
||||||
lastColumn := t.content.GetColumnCount() - 1
|
lastColumn := t.content.GetColumnCount() - 1
|
||||||
rowCount := t.content.GetRowCount()
|
rowCount := t.content.GetRowCount()
|
||||||
|
if rowCount == 0 {
|
||||||
|
return // No movement on empty tables.
|
||||||
|
}
|
||||||
var (
|
var (
|
||||||
previous = func() {
|
previous = func() {
|
||||||
startRow := t.selectedRow
|
startRow := t.selectedRow
|
||||||
|
|
Loading…
Reference in New Issue