# -*- coding: utf-8 -*-
import sublime
import sublime_plugin

_MARK_STYLE = sublime.HIDE_ON_MINIMAP | sublime.PERSISTENT | sublime.HIDDEN

class MarkingChangedRowsCommand(sublime_plugin.EventListener):
	def on_modified(self, view):
		if view.file_name():
			changed = view.get_regions('changed')
			changed +=[view.line(r) for r in view.sel() if not r in changed]

			view.add_regions('changed', changed, 'mark', 'dot', _MARK_STYLE)
			if view.is_dirty():
				view.add_regions('changed', changed, 'mark', 'dot', _MARK_STYLE)
			else:
				view.erase_regions('changed')

	def on_post_save(self, view):
			view.erase_regions('changed')

@@ -626,28 +626,91 @@
 w.erase_regions('changed')%0D%0A
+%0D%0A%09def on_load(self, view):%0D%0A%09%09%09view.erase_regions('changed')%0D%0A

fix 起動直後にマークが付くことがあった