Skip to content

Commit

Permalink
don't run git_gutter in a view if it has no window
Browse files Browse the repository at this point in the history
don't run git_gutter in a view if it has no window: fixes AttributeError: 'NoneType'... when views are activated via the `Goto Anything` palette
  • Loading branch information
DisposaBoy committed May 22, 2013
1 parent c08b6b8 commit 8ab383f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_gutter_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def on_disk(self):
return self.view.file_name() is not None

def reset(self):
if self.on_disk() and self.git_path:
if self.on_disk() and self.git_path and self.view.window():
self.view.window().run_command('git_gutter')

def get_git_path(self):
Expand Down

0 comments on commit 8ab383f

Please sign in to comment.