Skip to content

Commit

Permalink
Merge pull request #1713 from xiaoyifang/opt/mark.js
Browse files Browse the repository at this point in the history
opt:mark.js only highlight exact words
  • Loading branch information
xiaoyifang authored Aug 6, 2024
2 parents e2617f3 + b8f49ec commit f238619
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ void ArticleView::highlightFTSResults()
QString script = QString(
"var context = document.querySelector(\"body\");\n"
"var instance = new Mark(context);\n instance.unmark();\n"
"instance.mark(\"%1\");" )
"instance.mark(\"%1\",{\"accuracy\": \"exactly\"});" )
.arg( regString );

webview->page()->runJavaScript( script );
Expand Down
1 change: 0 additions & 1 deletion src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,6 @@ void MainWindow::toggleMainWindow( bool onlyShow )
if ( !cfg.preferences.searchInDock )
translateBox->setPopupEnabled( false );

qDebug() << "Current state:" << isVisible() << isMinimized() << isActiveWindow() << onlyShow;
if ( !isVisible() ) {
show();

Expand Down

0 comments on commit f238619

Please sign in to comment.