diff --git a/service.js b/service.js index 7ff1c03..71740d0 100644 --- a/service.js +++ b/service.js @@ -366,6 +366,7 @@ class BesService { const scrollX = scrollPanelRect.left const scrollY = scrollPanelRect.top match.highlights = Array.from(range.getClientRects()) + if (match.highlights.length === 0) return const dpr = window.devicePixelRatio this.ctx.lineWidth = 2 * dpr // Use 2 for clearer visibility const ruleId = match.match.rule.id