We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53b961 commit 2c35da2Copy full SHA for 2c35da2
autofilename.py
@@ -21,9 +21,9 @@ def run(self, edit):
21
view = self.view
22
sel = view.sel()[0].a
23
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)
+ scope = view.extract_scope(sel-1)
+ tag_scope = view.extract_scope(scope.a-1)
+ region = sublime.Region(sel, scope.b-1)
27
view.erase(edit, region)
28
29
path = view.substr(view.extract_scope(sel-1))
0 commit comments