mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
guard FileUtils.fileExists(at: url) else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return url
|
return url
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user