fix: Fix extension behavior on new document creation

This commit is contained in:
Anton Duda 2025-10-26 22:16:20 +03:00
parent d262edd9e3
commit a2bbe913cf

View file

@ -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)