1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 11:37:32 +03:00

Guard against non-existing file when markdown previewing

This commit is contained in:
Tae Won Ha 2017-01-23 19:33:54 +01:00
parent 72eb7a42c0
commit a6165af3fa
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -269,6 +269,10 @@ class MarkdownRenderer: NSObject, Flow, PreviewRenderer {
return nil
}
guard FileUtils.fileExists(at: url) else {
return nil
}
return url
default: