diff options
author | Wojciech Kępka | 2021-06-06 05:09:50 +0000 |
---|---|---|
committer | Ivan Tham | 2021-06-06 09:28:09 +0000 |
commit | 14f511da930afda1e9a2201f628daff9f96a0948 (patch) | |
tree | 3702496c9b0fd83b28cc4c0706b9b2385c549f52 /helix-view/src/editor.rs | |
parent | 392631b21df0d49e56322f26ca78e0ef2d9f8789 (diff) |
Create document if it doesn't exist on save
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<DocumentId, Error> { - let path = std::fs::canonicalize(path)?; + let path = crate::document::canonicalize_path(&path)?; let id = self .documents() |