focus the md_view back

This commit is contained in:
Mathieu PATUREL
2017-01-05 09:18:09 +11:00
parent 4a3caf30bb
commit fd633e0bc0
3 changed files with 10 additions and 7 deletions

View File

@ -18,6 +18,7 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener):
id = vsettings.get(PREVIEW_ID)
if id is None or get_view_from_id(window, id) is None:
preview = create_preview(view)
return
def on_activated(self, view):
# if view is md_view and has no preview