Skip to content

Commit 2c35da2

Browse files
author
Liam Cain
committed
fix for XHTML img tag
1 parent a53b961 commit 2c35da2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autofilename.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def run(self, edit):
2121
view = self.view
2222
sel = view.sel()[0].a
2323
if not 'string' in view.scope_name(sel): return
24-
scope_end = view.extract_scope(sel-1).b
25-
tag_scope = view.extract_scope(sel+1)
26-
region = sublime.Region(sel, scope_end-1)
24+
scope = view.extract_scope(sel-1)
25+
tag_scope = view.extract_scope(scope.a-1)
26+
region = sublime.Region(sel, scope.b-1)
2727
view.erase(edit, region)
2828

2929
path = view.substr(view.extract_scope(sel-1))

0 commit comments

Comments
 (0)