From 14f511da930afda1e9a2201f628daff9f96a0948 Mon Sep 17 00:00:00 2001 From: Wojciech Kępka Date: Sun, 6 Jun 2021 07:09:50 +0200 Subject: Create document if it doesn't exist on save --- helix-view/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src/editor.rs') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index d991f250..fa8dea2f 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -137,7 +137,7 @@ impl Editor { } pub fn open(&mut self, path: PathBuf, action: Action) -> Result { - let path = std::fs::canonicalize(path)?; + let path = crate::document::canonicalize_path(&path)?; let id = self .documents() -- cgit v1.2.3-70-g09d2