diff options
author | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
commit | 8289bd1cb0cf34d26a9f452850081799311e3f45 (patch) | |
tree | 1d8fc45f221c1920361ca535167ea3782ae20cb7 /helix-view/src | |
parent | 01907b349771106865853dc2ea90aaa0913a7297 (diff) |
minor, fix clippy lint
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 1c737b3e..c5597a34 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -33,6 +33,8 @@ impl Editor { } pub fn open(&mut self, path: PathBuf, executor: &smol::Executor) -> Result<(), Error> { + // TODO: try to find an open view/buffer first + let mut doc = Document::load(path, self.theme.scopes())?; // try to find a language server based on the language name |