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:
parent
72eb7a42c0
commit
a6165af3fa
@ -269,6 +269,10 @@ class MarkdownRenderer: NSObject, Flow, PreviewRenderer {
|
||||
return nil
|
||||
}
|
||||
|
||||
guard FileUtils.fileExists(at: url) else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return url
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user