mirror of
https://github.com/dudaanton/obsidian-strudel-plugin.git
synced 2026-07-22 06:43:01 +00:00
fix: Fix extension behavior on new document creation
This commit is contained in:
parent
d262edd9e3
commit
a2bbe913cf
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ const findBlocks = (
|
|||
): StrudelBlockInfo[] => {
|
||||
const blocks: StrudelBlockInfo[] = []
|
||||
|
||||
if (state.doc.length === 0) return blocks
|
||||
|
||||
if (from === to) return blocks
|
||||
|
||||
const startLine = state.doc.lineAt(from)
|
||||
|
|
|
|||
Loading…
Reference in a new issue