mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
Fix an issue with closing nested splits.
The parent id was never assigned to the split, so removing the container when it became empty failed.
This commit is contained in:
parent
9ca2909c80
commit
9f318a8529
@ -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] {
|
||||
|
Loading…
Reference in New Issue
Block a user