diff options
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r-- | helix-view/src/document.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index f6c7c70d..0286b2b9 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -8,6 +8,8 @@ use helix_core::{ ChangeSet, Diagnostic, History, Rope, Selection, State, Syntax, Transaction, }; +use crate::DocumentId; + #[derive(Copy, Clone, PartialEq, Eq, Hash)] pub enum Mode { Normal, @@ -18,6 +20,7 @@ pub enum Mode { pub struct Document { // rope + selection + pub(crate) id: DocumentId, state: State, path: Option<PathBuf>, @@ -66,6 +69,7 @@ impl Document { let old_state = None; Self { + id: DocumentId::default(), path: None, state: State::new(text), mode: Mode::Normal, |