Browse Source

Save history when goto script line in the text editor.

Adam Scott 2 years ago
parent
commit
0dc1bcb0c9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/script_editor_plugin.cpp

+ 2 - 0
editor/plugins/script_editor_plugin.cpp

@@ -439,6 +439,8 @@ void ScriptEditor::_goto_script_line(Ref<RefCounted> p_script, int p_line) {
 			} else if (current) {
 				current->goto_line(p_line, true);
 			}
+
+			_save_history();
 		}
 	}
 }