mirror of
https://github.com/zhigang1992/AutoFileName.git
synced 2026-01-12 22:45:57 +08:00
rchl's fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user