diff --git a/lib/tfw/components/source_code_event_handler.py b/lib/tfw/components/source_code_event_handler.py index 91b4fb3..19896d4 100644 --- a/lib/tfw/components/source_code_event_handler.py +++ b/lib/tfw/components/source_code_event_handler.py @@ -71,7 +71,7 @@ class SourceCodeEventHandler(TriggerlessEventHandler): with self.monitor.pauser: try: self.filemanager.file_contents = data['content'] except Exception: log.exception('Error writing file!') - data['content'] = '' + del data['content'] return data def select(self, data):