1
0

Merge branch 'main' of github.com:silverbulletmd/silverbullet

This commit is contained in:
Zef Hemel 2023-07-12 11:00:28 +02:00
commit 1818bfad00

View File

@ -448,7 +448,7 @@ export class Editor {
}
this.editorView.dispatch({
selection: { anchor: pos },
scrollIntoView: true,
effects: EditorView.scrollIntoView(pos, { y: "start" }),
});
} else if (!stateRestored) {
// Somewhat ad-hoc way to determine if the document contains frontmatter and if so, putting the cursor _after it_.