[GH-ISSUE #1146] Infinite loop after pressing down key for table #830

Open
opened 2026-03-04 01:08:00 +03:00 by kerem · 0 comments
Owner

Originally created by @xixiliguo on GitHub (Mar 1, 2026).
Original GitHub issue: https://github.com/rivo/tview/issues/1146

Create table with one row which was non-selectable.
After press down, cpu of process is 100%

code

package main

import (
	"github.com/rivo/tview"
)

func main() {
	t := tview.NewTable()
	t.SetFixed(1, 2).SetSelectable(true, false)

	cols := []string{"cpu", "memory", "disk"}
	for i, col := range cols {
		t.SetCell(0, i, tview.NewTableCell(col).SetSelectable(false))
	}
	app := tview.NewApplication()
	if err := app.SetRoot(t, true).SetFocus(t).Run(); err != nil {
		return
	}
}

The actual scenario is that my app have table which contains a lot of data. But after filtering, data set is empty. header remains. pressing down key causes an issue.

Originally created by @xixiliguo on GitHub (Mar 1, 2026). Original GitHub issue: https://github.com/rivo/tview/issues/1146 Create table with one row which was non-selectable. After press down, cpu of process is 100% code ``` go package main import ( "github.com/rivo/tview" ) func main() { t := tview.NewTable() t.SetFixed(1, 2).SetSelectable(true, false) cols := []string{"cpu", "memory", "disk"} for i, col := range cols { t.SetCell(0, i, tview.NewTableCell(col).SetSelectable(false)) } app := tview.NewApplication() if err := app.SetRoot(t, true).SetFocus(t).Run(); err != nil { return } } ``` The actual scenario is that my app have table which contains a lot of data. But after filtering, data set is empty. header remains. pressing down key causes an issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#830
No description provided.