mirror of https://github.com/rivo/tview.git
Fix panic when clicking spaces after slide page items.
This commit is contained in:
parent
c766eefb38
commit
ab1a0c7324
|
@ -55,6 +55,10 @@ func main() {
|
|||
SetRegions(true).
|
||||
SetWrap(false).
|
||||
SetHighlightedFunc(func(added, removed, remaining []string) {
|
||||
if len(added) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
pages.SwitchToPage(added[0])
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue