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:
commit
72305e1deb
@ -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() {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user