aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/tree.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index 6204ba41..e48f376a 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -163,7 +163,8 @@ impl Tree {
container.children.insert(pos, node);
self.nodes[node].parent = parent;
} else {
- let split = Node::container(layout);
+ let mut split = Node::container(layout);
+ split.parent = parent;
let split = self.nodes.insert(split);
let container = match &mut self.nodes[split] {