fixed bug with forward slashes.

Forgot to check if at end of path.
This commit is contained in:
Liam Cain
2012-08-10 10:48:08 -04:00
parent 0c0bdb5a41
commit 63fe2a4fa7

View File

@@ -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):