From 8289bd1cb0cf34d26a9f452850081799311e3f45 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 25 Feb 2021 16:52:32 +0900 Subject: minor, fix clippy lint --- helix-view/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-view/src') 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 -- cgit v1.2.3-70-g09d2