Skip to content

Commit

Permalink
Merge pull request #14 from SublimeLinter/fix-13
Browse files Browse the repository at this point in the history
Preserve `match` arg to pass it to super
  • Loading branch information
kaste authored May 15, 2018
2 parents b1654cf + 04f8a03 commit 993c361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def reposition_match(self, line, col, match, vv):
text = vv.select_line(line)
pattern = r"\s({}|{})".format(last_part, import_id)

match = re.search(pattern, text)
if match:
return line, match.start(1), match.end(1)
re_match = re.search(pattern, text)
if re_match:
return line, re_match.start(1), re_match.end(1)

return super().reposition_match(line, col, match, vv)

0 comments on commit 993c361

Please sign in to comment.