From 04f6088913163b5100dcd285370e24aeedaf4a17 Mon Sep 17 00:00:00 2001 From: Liam Cain Date: Fri, 3 Aug 2012 01:00:10 -0400 Subject: [PATCH] Fix potential crash on load --- autofilename.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autofilename.py b/autofilename.py index dd0e424..2180aa8 100644 --- a/autofilename.py +++ b/autofilename.py @@ -86,6 +86,7 @@ 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', @@ -94,6 +95,7 @@ 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):