summaryrefslogtreecommitdiff
path: root/helix-view/src/view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/view.rs')
-rw-r--r--helix-view/src/view.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs
index 091d1f2e..a496fe33 100644
--- a/helix-view/src/view.rs
+++ b/helix-view/src/view.rs
@@ -316,6 +316,11 @@ impl View {
))
}
+ pub fn remove_document(&mut self, doc_id: &DocumentId) {
+ self.jumps.remove(doc_id);
+ self.docs_access_history.retain(|doc| doc != doc_id);
+ }
+
// pub fn traverse<F>(&self, text: RopeSlice, start: usize, end: usize, fun: F)
// where
// F: Fn(usize, usize),