set main callback async (should help #6)

This commit is contained in:
Mathieu PATUREL
2017-01-07 09:11:30 +11:00
parent 613e3fb1b2
commit aa5fd4faf8
2 changed files with 2 additions and 7 deletions

View File

@ -19,7 +19,7 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener):
preview = get_view_from_id(window, id)
if id is None or preview is None:
preview = create_preview(view)
sublime.set_timeout(lambda: show_html(view, preview), 1000)
sublime.set_timeout_async(lambda: show_html(view, preview), 1000)
else:
show_html(view, preview)