1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-27 14:14:19 +03:00

Merge branch 'master' into develop

This commit is contained in:
Tae Won Ha 2018-02-11 14:59:42 +01:00
commit 72305e1deb
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 10 additions and 4 deletions

View File

@ -70,11 +70,13 @@ class HtmlPreviewTool: NSView, UiComponent, WKNavigationDelegate {
}
private func reloadWebview(with url: URL) {
self.webview.evaluateJavaScript("document.body.scrollTop") { (result, error) in
self.scrollTop = result as? Int ?? 0
self.webview.load(URLRequest(url: url))
DispatchQueue.main.async {
self.webview.evaluateJavaScript("document.body.scrollTop") { (result, error) in
self.scrollTop = result as? Int ?? 0
}
}
self.webview.load(URLRequest(url: url))
}
private func addViews() {

View File

@ -7,6 +7,10 @@
- sindresorhus/github-markdown-css@2.10.0
- Quick/Nimble@7.0.3
# 0.20.6-261
* GH-609: Bugfix: HTML preview crashes when reloading.
# 0.20.5-259
* GH-597: Bugfix: vim-fugitive sometimes causes crashes.