| 1396 | } |
| 1397 | |
| 1398 | void CodeTextEditor::goto_line_centered(int p_line, int p_column) { |
| 1399 | text_editor->remove_secondary_carets(); |
| 1400 | text_editor->deselect(); |
| 1401 | text_editor->unfold_line(CLAMP(p_line, 0, text_editor->get_line_count() - 1)); |
| 1402 | text_editor->set_caret_line(p_line, false); |
| 1403 | text_editor->set_caret_column(p_column, false); |
| 1404 | text_editor->set_code_hint(""); |
| 1405 | text_editor->cancel_code_completion(); |
| 1406 | callable_mp((TextEdit *)text_editor, &TextEdit::center_viewport_to_caret).call_deferred(0); |
| 1407 | } |
| 1408 | |
| 1409 | void CodeTextEditor::set_executing_line(int p_line) { |
| 1410 | text_editor->set_line_as_executing(p_line, true); |
no test coverage detected