diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index e9f027f3..84d499e3 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -119,6 +119,8 @@ impl Editor { } pub fn open(&mut self, path: PathBuf, action: Action) -> Result { + let path = std::fs::canonicalize(path)?; + let id = self .documents() .find(|doc| doc.path() == Some(&path))