Permalink
Browse files

Merge pull request #16 from rchl/master

Fix for Issue #11
  • Loading branch information...
BoundInCode committed Aug 5, 2012
2 parents 6c7e60f + 0d05dab commit 9ad0af760bc3a04be9649f20dfa27118423d91d6
Showing with 2 additions and 0 deletions.
  1. +2 −0 autofilename.py
View
@@ -75,6 +75,8 @@ def at_path_end(self,view):
return False
def on_selection_modified(self,view):
+ if view.get_window() == None:
+ return;
sel = view.sel()[0]
if sel.empty() and self.at_path_end(view):
if view.substr(sel.a-1) == '/' or len(view.extract_scope(sel.a)) < 3:

0 comments on commit 9ad0af7

Please sign in to comment.