gizak / termui

Golang terminal dashboard
MIT License
13.06k stars 783 forks source link

List widget panics with `index out of range[-1]` #326

Open Tesohh opened 11 months ago

Tesohh commented 11 months ago

i have a goroutine for the UI and a function called from another goroutine to handle keyboard events. i've set it to J to scroll down a list and K to scroll Up, and it saves the row number in a variable, but i randomly get this error which panics the whole program