From 2e26a74d1261d81f3df824cc7388f4e38d70da6e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 30 Jan 2025 13:50:37 +0800 Subject: [PATCH] :rotating_light: --- app/src/search/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index d4dd5e50a..53b45d8bd 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1023,7 +1023,7 @@ const renderNextSearchMark = (options: { options.edit.protyle.highlight.ranges.forEach((item, index) => { if (options.edit.protyle.highlight.rangeIndex === index) { options.edit.protyle.highlight.markHL.add(item); - currentRange = item + currentRange = item; } else { options.edit.protyle.highlight.mark.add(item); } @@ -1115,7 +1115,7 @@ export const getArticle = (options: { } else { highlightById(options.edit.protyle, options.id); } - } + }; highlightKeys(); const observer = new ResizeObserver(() => { highlightKeys();