Skip to content

Commit

Permalink
also allow negative decimals for code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed May 27, 2015
1 parent 2455852 commit 6637f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sublimekodi.py
Expand Up @@ -714,7 +714,7 @@ def run(self, edit, num_items):
selected_text = self.view.substr(self.view.sel()[0])
# new_text = selected_text + "\n"
new_text = ""
reg = re.search(r"\[([0-9]+)\]", selected_text)
reg = re.search(r"\[(-?[0-9]+)\]", selected_text)
offset = 0
if reg:
offset = int(reg.group(1))
Expand Down

0 comments on commit 6637f46

Please sign in to comment.