diff options
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r-- | helix-view/src/document.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index b2a66415..3c406f8b 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -90,8 +90,6 @@ pub struct Document { path: Option<PathBuf>, encoding: &'static encoding::Encoding, - /// Current editing mode. - pub mode: Mode, pub restore_cursor: bool, /// Current indent style. @@ -133,7 +131,6 @@ impl fmt::Debug for Document { .field("selections", &self.selections) .field("path", &self.path) .field("encoding", &self.encoding) - .field("mode", &self.mode) .field("restore_cursor", &self.restore_cursor) .field("syntax", &self.syntax) .field("language", &self.language) @@ -349,7 +346,6 @@ impl Document { selections: HashMap::default(), indent_style: DEFAULT_INDENT, line_ending: DEFAULT_LINE_ENDING, - mode: Mode::Normal, restore_cursor: false, syntax: None, language: None, @@ -925,11 +921,6 @@ impl Document { self.last_saved_revision = current_revision; } - /// Current editing mode for the [`Document`]. - pub fn mode(&self) -> Mode { - self.mode - } - /// Corresponding language scope name. Usually `source.<lang>`. pub fn language_scope(&self) -> Option<&str> { self.language |