Skip to content

Commit

Permalink
Merge from 2.3: Fix for issue #2680
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Sep 18, 2015
2 parents 8df8649 + 1015681 commit d013ac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion spyderlib/plugins/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,6 @@ def new(self, fname=None, editorstack=None, text=None):
self._clone_file_everywhere(finfo)
current_editor = current_es.set_current_filename(finfo.filename)
self.register_widget_shortcuts("Editor", current_editor)
finfo.default = False
if not created_from_here:
self.save(force=True)

Expand Down
3 changes: 2 additions & 1 deletion spyderlib/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def __init__(self, filename, encoding, editor, new, threadmanager,

def text_changed(self):
"""Editor's text has changed"""
self.default = False
self.text_changed_at.emit(self.filename,
self.editor.get_position('cursor'))

Expand Down Expand Up @@ -1113,7 +1114,7 @@ def close_file(self, index=None, force=False):
self.set_stack_index(new_index)
if self.get_stack_count() == 0:
self.sig_new_file[()].emit()

return False
return is_ok

def close_all_files(self):
Expand Down

0 comments on commit d013ac3

Please sign in to comment.