diff options
author | Jan Hrastnik | 2020-06-19 00:14:29 +0000 |
---|---|---|
committer | Jan Hrastnik | 2020-06-19 00:14:29 +0000 |
commit | e93b15cef3d9274a95ac4342e777d240856e5803 (patch) | |
tree | 4f2ab662d75d21511a71c5246c197c1542422455 /helix-core | |
parent | 8958f06f0824965d030adc7522303129da014315 (diff) |
created view struct
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/state.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index 8ebf3887..429a4dd4 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -120,8 +120,7 @@ impl State { pub fn file(&self) -> &Rope { // used to access file contents for rendering to screen - let copy = &self.doc.contents; - copy + &self.doc.contents } } |