summaryrefslogtreecommitdiff
path: root/helix-view/src/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r--helix-view/src/tree.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index 4b6fd77c..9903ba79 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -99,6 +99,7 @@ impl Tree {
let mut node = Node::view(view);
node.parent = parent;
let node = self.nodes.insert(node);
+ self.get_mut(node).id = node;
let container = match &mut self.nodes[parent] {
Node {