Skip to content

Commit

Permalink
Merge pull request #1385 from xiaoyifang/fix/ctrl-v-in-welcome-page
Browse files Browse the repository at this point in the history
fix: ctrl+v in Welcome page will result a wrong search
  • Loading branch information
xiaoyifang authored Jan 26, 2024
2 parents 0596ed5 + 54808cd commit bc8c615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ void ArticleView::pasteTriggered()

if ( !word.isEmpty() ) {
unsigned groupId = getGroup( webview->url() );
if ( groupId == 0 ) {
if ( groupId == 0 || groupId == Instances::Group::HelpGroupId ) {
// We couldn't figure out the group out of the URL,
// so let's try the currently selected group.
groupId = currentGroupId;
Expand Down

0 comments on commit bc8c615

Please sign in to comment.