diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -868,7 +868,8 @@ class Editor(PluginWidget):
         # Creating editor widget

         if editorstack is None:

             editorstack = self.get_current_editorstack()

-        finfo = editorstack.create_new_editor(fname, enc, text, new=True)

+        finfo = editorstack.create_new_editor(fname, enc, text,

+                                              set_current=True, new=True)

         finfo.editor.set_cursor_position('eof')

         finfo.editor.insert_text(os.linesep)
Editor plugin: remaining bug following major changes in Editor wigdet