-
-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic in MouseHandler for TextView with borders #959
Comments
digitallyserviced
added a commit
to digitallyserviced/tview
that referenced
this issue
Mar 29, 2024
rivo
added a commit
that referenced
this issue
Apr 3, 2024
fixing #959 textview mouse out of bounds fix
Fixed with #963 |
shivaraj-bh
added a commit
to shivaraj-bh/process-compose
that referenced
this issue
May 17, 2024
… v0.0.0-20240505185119-ed116790de0f This version includes rivo/tview#959, which resolves F1bonacc1#186
kopecmaciej
pushed a commit
to kopecmaciej/tview
that referenced
this issue
Aug 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that https://github.com/rivo/tview/blob/master/textview.go#L1386 is missing a bounds check for when
y+t.lineOffset
is negative, which leads to a panic in this scenario, when the user clicks on the top border instead of the text itself:Sample
Trace
The text was updated successfully, but these errors were encountered: