mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #564] TreeView.SetChangedFunc passes previous instead of current node #412
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#412
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 @rkoster on GitHub (Feb 10, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/564
TreeView.SetChangedFunc passes previous instead of current node. In addition running TreeView.GetCurrentNode inside the call back also return the previous node.
I'm suspecting this issue was introduce in: https://github.com/rivo/tview/issues/489 since reverting to
a8048787f0(commit before said PR was merged) "fixes" the issue.@rivo commented on GitHub (Feb 17, 2021):
Could you please post some code that illustrates this? I'm having trouble reproducing this.
@rkoster commented on GitHub (Feb 17, 2021):
@rkoster commented on GitHub (Mar 22, 2021):
@rivo where you able to reproduce the issue with the example above?
@rivo commented on GitHub (Apr 27, 2021):
Unfortunately not. This is what it looks like for me with your code:
Are you on the latest version of
tview? What OS and terminal are you on?@rkoster commented on GitHub (Apr 27, 2021):
@rivo have just confirmed that using the latest version of tview seems to work.
I looked back at my commits and found the I could reproduce the issue with the code posted above in combination with:
@rivo commented on GitHub (Apr 27, 2021):
Ok, well, if it works now, that's good. Thanks for getting back to me.