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

Method search_next

editor/gui/code_editor.cpp:558–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558bool FindReplaceBar::search_next() {
559 if (is_selection_only() && !replace_all_mode) {
560 return false;
561 }
562
563 if (!is_visible()) {
564 popup_search(true);
565 }
566
567 if (flags & TextEdit::SEARCH_BACKWARDS) {
568 needs_to_count_results = true;
569 }
570
571 _update_flags(false);
572
573 int line, col;
574 _get_search_from(line, col, SEARCH_NEXT);
575
576 return _search(flags, line, col);
577}
578
579void FindReplaceBar::_hide_bar() {
580 if (replace_text->has_focus() || search_text->has_focus()) {

Callers 4

_edit_optionMethod · 0.45
_edit_optionMethod · 0.45
_menu_optionMethod · 0.45
inputMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected