mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #976] [MERGED] Fix app crash when clicking spaces after slide page items in presentation demo. #1091
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1091
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/976
Author: @Zhwt
Created: 4/29/2024
Status: ✅ Merged
Merged: 5/24/2024
Merged by: @rivo
Base:
master← Head:patch-1📝 Commits (1)
ab1a0c7Fix panic when clicking spaces after slide page items.📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
demos/presentation/main.go(+4 -0)📄 Description
The
SetHighlightedFuncfunction is missing boundary check, so when clicking outside of available item list, it will panic with out of bound error.github.com/rivo/tview@c766eefb38/demos/presentation/main.go (L57-L59)Fixed by checking slice length first.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.