Permalink
Browse files

gist language could be empty

  • Loading branch information...
freewizard committed Oct 8, 2012
1 parent e9ce129 commit 718852bdc5f64db0b986f3760f018cddd7bc5ae4
Showing with 1 addition and 1 deletion.
  1. +1 −1 gist.py
View
@@ -217,10 +217,10 @@ def open_gist(gist_url):
edit = view.begin_edit()
view.insert(edit, 0, gist['files'][gist_filename]['content'])
view.end_edit(edit)
+ if not language: continue
language = gist['files'][gist_filename]['language']
new_syntax = os.path.join(language,"{0}.tmLanguage".format(language))
new_syntax_path = os.path.join(sublime.packages_path(), new_syntax)
- print new_syntax_path
if os.path.exists(new_syntax_path):
view.set_syntax_file( new_syntax_path )

0 comments on commit 718852b

Please sign in to comment.