Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Holzleitner committed Feb 5, 2016
1 parent 45b693c commit 9110d68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Keymaps/Default.sublime-keymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def indent_list_items(key, reverse=False):
# When the cursor is at EOL with an (un)ordered list item and you hit
# Enter, then the next item is added (with the same nesting level).
bind('enter')
.to('insert_snippet', contents='${TM_CURRENT_LINE/^(\\s*([*.\\-]+)(\\s+))?((\\[)[xX* ](\\]\s*))?.*/\n$2$3$5 $6/}')
.to('insert_snippet', contents=
'${TM_CURRENT_LINE/^(\\s*([*.\\-]+)(\\s+))?((\\[)[xX* ](\\]\s*))?.*/\n$2$3$5 $6/}')
.when('auto_complete_visible').false()
.also('preceding_text').regex_contains('^\\s*([*.-]+)\\s+\\S'),

Expand Down
3 changes: 2 additions & 1 deletion commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ def run(self, edit, commands):
else:
self.view.run_command(command[0], *command[1:])


class AsciidocToggleCheckbox(TextCommand):
def run(self, edit):
view = self.view

checkboxes = view.find_by_selector('markup.checkbox.checked.asciidoc');
checkboxes = view.find_by_selector('markup.checkbox.checked.asciidoc')

for sel in view.sel():
region = view.line(sel)
Expand Down

0 comments on commit 9110d68

Please sign in to comment.