Skip to content

Commit

Permalink
Add panic detecting underlying bug for issue #16 earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Aug 4, 2024
1 parent 0d6c4e1 commit 710b04b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/view/selection/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ mod imp {
if i.selection.document.is_outdated(&info.document) {
panic!("selection document was outdated!");
}

if info.document.is_outdated(&i.selection.document) {
panic!("list item info document was outdated!");
}

i.selection.path_selected(&info.path)
})
Expand Down

0 comments on commit 710b04b

Please sign in to comment.