Merge branch 'main' of github.com:silverbulletmd/silverbullet
commit
1818bfad00
|
@ -448,7 +448,7 @@ export class Editor {
|
||||||
}
|
}
|
||||||
this.editorView.dispatch({
|
this.editorView.dispatch({
|
||||||
selection: { anchor: pos },
|
selection: { anchor: pos },
|
||||||
scrollIntoView: true,
|
effects: EditorView.scrollIntoView(pos, { y: "start" }),
|
||||||
});
|
});
|
||||||
} else if (!stateRestored) {
|
} else if (!stateRestored) {
|
||||||
// Somewhat ad-hoc way to determine if the document contains frontmatter and if so, putting the cursor _after it_.
|
// Somewhat ad-hoc way to determine if the document contains frontmatter and if so, putting the cursor _after it_.
|
||||||
|
|
Loading…
Reference in New Issue