def on_modified(self, view): od_file = files.get(view.id()) if not od_file: return cmd = view.command_history(0, True) if cmd[0] == 'overdrive_edit': return curr_text = odutils.get_text(view) od_file.set_text(curr_text)
def get_text(self): return odutils.get_text(self.view)