aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index abc829c0..6e73104a 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -275,6 +275,11 @@ impl Document {
}
#[inline]
+ pub fn id(&self) -> DocumentId {
+ self.id
+ }
+
+ #[inline]
pub fn mode(&self) -> Mode {
self.mode
}