Open jingyuexing opened 3 years ago
I'm using Sublime 4104 and this worked for me: Open autofilename.py, using PackageResourceView. Go to line 162, and instead of
sel = view.sel()[0].a
txt = view.substr(sublime.Region(sel-4,sel-3))
if (self.showing_win_drives and txt == FileNameComplete.sep):
self.showing_win_drives = False
view.run_command('afn_delete_prefixed_slash')
Use:
try:
sel = view.sel()[0].a
txt = view.substr(sublime.Region(sel-4,sel-3))
if (self.showing_win_drives and txt == FileNameComplete.sep):
self.showing_win_drives = False
view.run_command('afn_delete_prefixed_slash')
except IndexError:
pass
the error log: