diff options
author | Blaž Hrastnik | 2021-03-18 05:48:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-18 05:53:29 +0000 |
commit | 8ba1e15d296fd3350332d8fa372c4c7703024a67 (patch) | |
tree | 31e7efbb2ab5a78f5521c0577f0471df77529e98 /helix-view/src/editor.rs | |
parent | 2b64f49f2c5da800ceae43359c91b9708e953d18 (diff) |
Expose doc.syntax() via accessor.
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 9b32b335..3de2bfb8 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -95,7 +95,7 @@ impl Editor { self.tree.remove(id) } - pub fn should_close(&mut self) -> bool { + pub fn should_close(&self) -> bool { self.tree.is_empty() } |