Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix bookmarks and breakpoints issue on history navigate

jinyangcruise9183862295cb
diff --git a/editor/script/script_editor_base.cpp b/editor/script/script_editor_base.cpp
index 1102095f7fd..45753fd8d9c 100644
--- a/editor/script/script_editor_base.cpp
+++ b/editor/script/script_editor_base.cpp
@@ -573,14 +573,14 @@ void TextEditorBase::_saved_update() {
}
void TextEditorBase::_emit_request_save_new_history() {
- Dictionary state = get_edit_state();
+ Dictionary state = get_navigation_state();
state["ensure_caret_visible"] = true;
previous_history_line = state["row"];
emit_signal(SNAME("_request_save_new_history"), state);
}
void TextEditorBase::_emit_request_save_previous_state() {
- Dictionary state = get_edit_state();
+ Dictionary state = get_navigation_state();
state["ensure_caret_visible"] = true;
previous_history_line = state["row"];
emit_signal(SNAME("_request_save_previous_state"), state);