aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 52285bf8..24cd8ef9 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -54,8 +54,7 @@ impl Editor {
}
let view = View::new(doc)?;
- let id = self.tree.insert(view);
- self.tree.get_mut(id).id = id;
+ self.tree.insert(view);
Ok(())
}