From af6bb145ca7b649000994c172522abd39b15bf50 Mon Sep 17 00:00:00 2001 From: a1mer Date: Wed, 31 Jan 2024 22:56:44 +0800 Subject: [PATCH] fix: interactive scroll (#102) --- src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.ts b/src/render.ts index 41b7c12..f488395 100644 --- a/src/render.ts +++ b/src/render.ts @@ -161,7 +161,7 @@ export function createSliceRender() { let focusedLineIndex = 0 let depIndex = 0 for (const line of remainLines) { - if (line.content.includes(FIG_CHECK)) + if (line.content.includes(FIG_CHECK) || line.content.includes(FIG_UNCHECK)) depIndex += 1 if (depIndex === selectedDepIndex)