From 63fe2a4fa7742b4a788bbcb50b36f4e5018d3db0 Mon Sep 17 00:00:00 2001 From: Liam Cain Date: Fri, 10 Aug 2012 10:48:08 -0400 Subject: [PATCH] fixed bug with forward slashes. Forgot to check if at end of path. --- autofilename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autofilename.py b/autofilename.py index c348db8..f0dd5d4 100644 --- a/autofilename.py +++ b/autofilename.py @@ -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):