Compare commits

...

1 Commits

Author SHA1 Message Date
aa5fd4faf8 set main callback async (should help #6) 2017-01-07 09:11:30 +11:00
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) preview = get_view_from_id(window, id)
if id is None or preview is None: if id is None or preview is None:
preview = create_preview(view) preview = create_preview(view)
sublime.set_timeout(lambda: show_html(view, preview), 1000) sublime.set_timeout_async(lambda: show_html(view, preview), 1000)
else: else:
show_html(view, preview) show_html(view, preview)

View File

@ -10,9 +10,4 @@ Hope you'll enjoy using MarkdownLivePreview!
![image](http://local.dev/tests/php/img/image-php.php) ![image](http://local.dev/tests/php/img/image-php.php)
hello world this is a tets
This is a test dfsdf hello world, this is pretty cool.
This is a test