mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +08:00
Merge pull request #976 from Zhwt/patch-1
Fix app crash when clicking spaces after slide page items in presentation demo.
This commit is contained in:
commit
a5d02328f1
@ -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…
x
Reference in New Issue
Block a user