(self, edit)
| 801 | |
| 802 | class ToggleHighlightChangesCommand(sublime_plugin.TextCommand): |
| 803 | def run(self, edit): |
| 804 | setting_name = "highlight_changes" |
| 805 | settings = get_settings() |
| 806 | is_on = settings.get(setting_name) |
| 807 | |
| 808 | if is_on: |
| 809 | # remove highlighting |
| 810 | [self.view.erase_regions(k) for k in ('inserted', 'changed', 'deleted')] |
| 811 | else: |
| 812 | self.view.run_command('hl_changes') |
| 813 | |
| 814 | settings.set(setting_name, not is_on) |
| 815 | sublime.save_settings("Modific.sublime-settings") |
nothing calls this directly
no test coverage detected