List widget panics with `index out of range[-1]`
Author: TesohhCreated Jul 28, 2023Updated Jul 28, 2023
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
Source: gizak/termui