Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
luckman212 committed Jun 22, 2024
1 parent f97cbd1 commit 49731bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/block_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export abstract class BlockUtils {
return i > 0 ? sections[i - 1] : sections[sections.length - 1];
})();
if (currentBlock?.type == "list") {
currentBlock = fileCache.listItems?.find(list =>
list.position.start.line <= cursor.line &&
list.position.end.line >= cursor.line
currentBlock = fileCache.listItems?.find(section =>
section.position.start.line <= cursor.line &&
section.position.end.line >= cursor.line
) ?? currentBlock;
}
return currentBlock;
Expand Down

0 comments on commit 49731bc

Please sign in to comment.