mirror of https://github.com/rivo/tview
Guards against a panic in dropdown.SetCurrentOption(-1)
When SetCurrentOption is called, that option's Selected hook is called, if present. However, should -1 (no selection) be passed, then the code would panic with an index out of range error.pull/369/head
parent
685bf6da76
commit
023b522d35
Loading…
Reference in New Issue