From e93b15cef3d9274a95ac4342e777d240856e5803 Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Fri, 19 Jun 2020 02:14:29 +0200 Subject: created view struct --- helix-core/src/state.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-core/src') 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 } } -- cgit v1.2.3-70-g09d2