From ed57d2813aeb1e8e1dfb133d35f86dda2b07b2d9 Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Thu, 5 Jan 2017 14:26:40 +1100 Subject: [PATCH] update timeout (not crashing anymore) --- MLPApi.py | 2 +- sample.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/MLPApi.py b/MLPApi.py index 3d3719e..fb92a3d 100644 --- a/MLPApi.py +++ b/MLPApi.py @@ -44,7 +44,7 @@ def create_preview(md_view): md_view_settings.set(PREVIEW_ID, preview.id()) def move_and_focus_md_view(): window.run_command('new_pane') - sublime.set_timeout_async(lambda: window.focus_view(md_view), 50) + sublime.set_timeout_async(lambda: window.focus_view(md_view), 250) sublime.set_timeout_async(move_and_focus_md_view, 250) return preview diff --git a/sample.md b/sample.md index 8a2eeac..f36bb22 100644 --- a/sample.md +++ b/sample.md @@ -5,4 +5,3 @@ This is a test ![image](http://afterishtar.pl/images/100x100.gif) hello world -