mirror of
https://github.com/zhigang1992/AutoFileName.git
synced 2026-01-12 22:45:57 +08:00
fixed bug with forward slashes.
Forgot to check if at end of path.
This commit is contained in:
@@ -62,7 +62,7 @@ class FileNameComplete(sublime_plugin.EventListener):
|
||||
return self.get_setting('afn_insert_dimensions',view) == operand
|
||||
if key == "afn_deleting_slash":
|
||||
sel = view.sel()[0]
|
||||
valid = sel.empty() and view.substr(sel.a-1) == '/'
|
||||
valid = self.at_path_end(view) and sel.empty() and view.substr(sel.a-1) == '/'
|
||||
return valid == operand
|
||||
|
||||
def at_path_end(self,view):
|
||||
|
||||
Reference in New Issue
Block a user