Revert "Fix potential crash on load"

This reverts commit 04f6088913.
This commit is contained in:
Liam Cain
2012-08-03 17:11:53 -04:00
parent 04f6088913
commit 6fbf222a76

View File

@@ -86,7 +86,6 @@ class FileNameComplete(sublime_plugin.EventListener):
def on_selection_modified(self,view):
sel = view.sel()[0]
if view.is_loading(): return
if self.at_path_end(view):
if view.substr(sel.a-1) == '/' or len(view.extract_scope(sel.a)) < 3:
view.run_command('auto_complete',
@@ -95,7 +94,6 @@ class FileNameComplete(sublime_plugin.EventListener):
def on_modified(self,view):
sel = view.sel()[0]
if view.is_loading(): return
v = view
if self.size > view.size():
if self.at_path_end(view):