This commit is contained in:
Kovid Goyal 2013-11-10 17:08:38 +05:30
parent 5fd300a533
commit b712a24e3b

View File

@ -291,9 +291,7 @@ class Boss(QObject):
editor = editors.get(name, None) editor = editors.get(name, None)
if editor is None: if editor is None:
editor = editors[name] = editor_from_syntax(syntax, self.gui.editor_tabs) editor = editors[name] = editor_from_syntax(syntax, self.gui.editor_tabs)
c = current_container() data = current_container().raw_data(name)
with c.open(name) as f:
data = c.decode(f.read())
self.init_editor(name, editor, data) self.init_editor(name, editor, data)
self.show_editor(name) self.show_editor(name)