def save(self): """Saves the current buffer to the file""" assert getattr(self, "filename", None) is not None fd = SafeFileWrite(self.filename) fd.write(self._sc.get_text()) fd.close() self._sc.set_save_point()
def save(self): """Saves the current buffer to the file""" assert getattr(self, "filename", None) is not None fd = SafeFileWrite(self.filename) fd.write(self._sc.get_text()) fd.close() self._sc.set_save_point() self.service.boss.call_command('buffermanager', 'reset_current_document')