| 13 | } |
| 14 | |
| 15 | void DocSearchController::refreshHighlight() { |
| 16 | if ( mSearchState.editor && mSplitter->editorExists( mSearchState.editor ) ) { |
| 17 | mSearchState.text = mFindInput->getText(); |
| 18 | mSearchState.editor->setHighlightWord( mSearchState.toTextSearchParams() ); |
| 19 | if ( !mSearchState.text.empty() ) { |
| 20 | findNextText( mSearchState, true ); |
| 21 | } else { |
| 22 | mFindInput->removeClass( "error" ); |
| 23 | mSearchState.editor->getDocument().setSelection( |
| 24 | mSearchState.editor->getDocument().getSelection().start() ); |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void DocSearchController::initSearchBar( |
| 30 | UISearchBar* searchBar, const SearchBarConfig& searchBarConfig, |
nothing calls this directly
no test coverage detected