mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #562] [CLOSED] Fix crashing in textview.go #984
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#984
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/562
Author: @inmylo
Created: 2/8/2021
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
e0f5e0bFix crashing in textview.go📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
textview.go(+1 -1)📄 Description
My application has a textView, which is being updated very often, for example each millisecond. It sometimes crashes when I try to close a modal window with
app.SetRoot(pages, true). I've figured out, that this PR'st.bufferis sometimes empty, so I tried to add an additional check and it seems to help. You can choose a more efficient way if such exists. Some time ago I got a similar error at line 826str := t.buffer[line.Line][line.Pos:line.NextPos]- maybe it should be fixed too.Panic's error:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.