summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2023-01-15 18:04:35 -0500
committerAdam Scott <ascott.ca@gmail.com>2023-01-15 18:04:35 -0500
commit0dc1bcb0c98f9b6a6a99bbf28206160bed031c8a (patch)
tree51ac80c2ec492646a5560fa4466f1f5f9e6d3aa7 /editor
parent91fedb60de6011434938499a9d4a7d4fd1cd4f06 (diff)
Save history when goto script line in the text editor.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 2ca26ff2b9..4268abe4a2 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/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();
}
}
}