gizak / termui

Golang terminal dashboard
MIT License
13.22k stars 786 forks source link

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

Open Tesohh opened 1 year ago

Tesohh commented 1 year 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