rchl's fix

This commit is contained in:
Liam Cain
2012-08-05 18:06:11 -04:00
parent 9ad0af760b
commit 0c0bdb5a41

View File

@@ -75,8 +75,8 @@ class FileNameComplete(sublime_plugin.EventListener):
return False
def on_selection_modified(self,view):
if view.get_window() == None:
return;
if not view.window():
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: