MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / goto_line_selection

Method goto_line_selection

editor/gui/code_editor.cpp:1389–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387}
1388
1389void 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
1398void CodeTextEditor::goto_line_centered(int p_line, int p_column) {
1399 text_editor->remove_secondary_carets();

Callers

nothing calls this directly

Calls 8

CLAMPFunction · 0.85
unfold_lineMethod · 0.80
set_code_hintMethod · 0.80
get_line_countMethod · 0.45
selectMethod · 0.45
call_deferredMethod · 0.45

Tested by

no test coverage detected