Permalink
Browse files

fix for issue #2

  • Loading branch information...
1 parent 0512bf7 commit af72fd58830cefdd3e6d23cb8008da78d8d71a0c @odyssomay committed Jan 7, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 commands.py
View
@@ -63,8 +63,9 @@ def test_view(view):
def test_current_view():
win = sublime.active_window()
- view = win.active_view()
- test_view(view)
+ if win:
+ view = win.active_view()
+ test_view(view)
settings = None
def reload_languages():

0 comments on commit af72fd5

Please sign in to comment.