mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #959] Panic in MouseHandler for TextView with borders #705
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#705
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?
Originally created by @Macmod on GitHub (Mar 14, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/959
It seems that https://github.com/rivo/tview/blob/master/textview.go#L1386 is missing a bounds check for when
y+t.lineOffsetis negative, which leads to a panic in this scenario, when the user clicks on the top border instead of the text itself:Sample
Trace
@rivo commented on GitHub (Apr 3, 2024):
Fixed with #963