Skip to content

Commit

Permalink
Desktop: Fix issue with GotoAnything that would prevent it from highl…
Browse files Browse the repository at this point in the history
…ighting search results in note titles (#11888)
  • Loading branch information
laurent22 authored Feb 27, 2025
1 parent bc385d5 commit ae86585
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/app-desktop/plugins/GotoAnything.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import Resource from '@joplin/lib/models/Resource';
import { NoteEntity, ResourceEntity } from '@joplin/lib/services/database/types';
import Dialog from '../gui/Dialog';
import AsyncActionQueue from '@joplin/lib/AsyncActionQueue';
import { htmlentities } from '@joplin/utils/html';

const logger = Logger.create('GotoAnything');

Expand Down Expand Up @@ -561,9 +560,7 @@ class DialogComponent extends React.PureComponent<Props, State> {
);
};

const titleHtml = item.fragments
? `<span style="font-weight: bold; color: ${theme.color};">${htmlentities(item.title)}</span>`
: wrapKeywordMatches(item.title);
const titleHtml = wrapKeywordMatches(item.title);

const fragmentsHtml = !item.fragments ? null : wrapKeywordMatches(item.fragments);

Expand Down

0 comments on commit ae86585

Please sign in to comment.