diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index 6204ba415..e48f376a4 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -163,7 +163,8 @@ pub fn split(&mut self, view: View, layout: Layout) -> ViewId { 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] {