diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 13b5c526..97304ee9 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -2133,6 +2133,11 @@ void ArticleView::highlightFTSResults() .arg( regString ); webview->page()->runJavaScript( script ); + auto parts = regString.split( " ", Qt::SkipEmptyParts ); + if ( !parts.isEmpty() ) { + firstAvailableText = parts[ 0 ]; + ftsSearchPanel->show(); + } } void ArticleView::setActiveDictIds( const ActiveDictIds & ad )