| 556 | } |
| 557 | |
| 558 | bool 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 | |
| 579 | void FindReplaceBar::_hide_bar() { |
| 580 | if (replace_text->has_focus() || search_text->has_focus()) { |
no outgoing calls
no test coverage detected