mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
chore(code/find): scroll to nearest result
This commit is contained in:
@@ -181,7 +181,7 @@ export default class CodeMirror extends EditorView {
|
||||
await new Promise(requestAnimationFrame);
|
||||
const instance = this.plugin(plugin);
|
||||
if (instance) {
|
||||
instance.scrollToMatch(0);
|
||||
instance.scrollToMatchNearestSelection();
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user