You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #112168 from timothyqiu/breakpoint-lost
Fix error when deleting trailing lines removed breakpoints
This commit is contained in:
@@ -1242,7 +1242,9 @@ void ScriptTextEditor::_breakpoint_item_pressed(int p_idx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ScriptTextEditor::_breakpoint_toggled(int p_row) {
|
void ScriptTextEditor::_breakpoint_toggled(int p_row) {
|
||||||
EditorDebuggerNode::get_singleton()->set_breakpoint(script->get_path(), p_row + 1, code_editor->get_text_editor()->is_line_breakpointed(p_row));
|
const CodeEdit *ce = code_editor->get_text_editor();
|
||||||
|
bool enabled = p_row < ce->get_line_count() && ce->is_line_breakpointed(p_row);
|
||||||
|
EditorDebuggerNode::get_singleton()->set_breakpoint(script->get_path(), p_row + 1, enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptTextEditor::_on_caret_moved() {
|
void ScriptTextEditor::_on_caret_moved() {
|
||||||
|
|||||||
Reference in New Issue
Block a user