Skip to content
Browse files

Use open_file() and not run_command("open_file")

run_command("open_file") seems to be bugged on Windows and apparently
there's a native API call that does exactly that. Fixes #20 and #23.
  • Loading branch information...
1 parent e15e445 commit 3ceaa28b750ae4565917c0a44666a7293b046a9c @technocoreai technocoreai committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -129,7 +129,7 @@ def _fn(*args, **kwargs):
if not os.path.exists(user_settings_path):
default_settings_path = os.path.join(sublime.packages_path(), 'Gist', 'Gist.sublime-settings')
shutil.copy(default_settings_path, user_settings_path)
- sublime.active_window().run_command("open_file", {"file": user_settings_path})
+ sublime.active_window().open_file(user_settings_path)
except subprocess.CalledProcessError as err:
sublime.error_message("Gist: Error while contacting GitHub: cURL returned %d" % err.returncode)
except EnvironmentError as err:

0 comments on commit 3ceaa28

Please sign in to comment.
Something went wrong with that request. Please try again.