You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
This reverts commit b98e64c881.
Ref: https://github.com/laurent22/joplin/issues/6035
This commit is contained in:
@@ -64,7 +64,7 @@ export default function useEditorSearch(CodeMirror: any) {
|
||||
}
|
||||
|
||||
if (match) {
|
||||
if (scrollTo) cm.setSelection(match.from, match.to);
|
||||
if (scrollTo) cm.scrollIntoView(match);
|
||||
return cm.markText(match.from, match.to, { className: 'cm-search-marker-selected' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user