| 1387 | } |
| 1388 | |
| 1389 | void CodeTextEditor::goto_line_selection(int p_line, int p_begin, int p_end) { |
| 1390 | text_editor->remove_secondary_carets(); |
| 1391 | text_editor->unfold_line(CLAMP(p_line, 0, text_editor->get_line_count() - 1)); |
| 1392 | text_editor->select(p_line, p_begin, p_line, p_end); |
| 1393 | text_editor->set_code_hint(""); |
| 1394 | text_editor->cancel_code_completion(); |
| 1395 | callable_mp((TextEdit *)text_editor, &TextEdit::adjust_viewport_to_caret).call_deferred(0); |
| 1396 | } |
| 1397 | |
| 1398 | void CodeTextEditor::goto_line_centered(int p_line, int p_column) { |
| 1399 | text_editor->remove_secondary_carets(); |
nothing calls this directly
no test coverage detected