Skip to content

Commit 627d9e5

Browse files
committed
fix: do not count current block
fix 12
1 parent 809df1c commit 627d9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/register-command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function getBlockMarkers(maybeUUID: string): Promise<Marker[] | null> {
6868
}
6969
}
7070

71-
if (tree.uuid && tree.marker) {
71+
if (tree.uuid && tree.marker && tree.uuid !== maybeUUID) {
7272
res.push(tree.marker.toLowerCase());
7373
}
7474
}

0 commit comments

Comments
 (0)