浏览代码

Merge pull request #9762 from Paulb23/_scipt_close_tab_selection_issue_8400

Fixed script tab selection on file close, issue 8400
Rémi Verschelde 8 年之前
父节点
当前提交
ba7fdcfd02
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/plugins/script_editor_plugin.cpp

+ 3 - 0
editor/plugins/script_editor_plugin.cpp

@@ -518,6 +518,9 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save) {
 		_add_recent_script(help->get_class());
 	}
 
+	// roll back to previous tab
+	_history_back();
+
 	//remove from history
 	history.resize(history_pos + 1);