From 49731bcf5c26f6a9fc46a77f2033118b55521c58 Mon Sep 17 00:00:00 2001 From: luckman212 <1992842+luckman212@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:41:35 -0400 Subject: [PATCH] update --- src/block_utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/block_utils.ts b/src/block_utils.ts index 9783090..eba094c 100644 --- a/src/block_utils.ts +++ b/src/block_utils.ts @@ -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;