1
0
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:
rivo 2024-05-24 08:00:14 +02:00 committed by GitHub
commit a5d02328f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])
})