From eaa574f0a3920373a6ee582cbb608c0298b2d46a Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 25 Jul 2021 11:12:07 +0100 Subject: [PATCH] Only create an rBlock for result lines, not non match lines --- assets/js/icecoder.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/icecoder.js b/assets/js/icecoder.js index 23b6332..562d901 100644 --- a/assets/js/icecoder.js +++ b/assets/js/icecoder.js @@ -3065,7 +3065,7 @@ var ICEcoder = { }, findInCMContent: function(thisCM, rExp, selectNext) { - let avgBlockH, addPadding, rBlocks, haveMatch, blockColor, rExpMatch0String; + let avgBlockH, addPadding, rBlocks, haveMatch, rExpMatch0String; // Start new iterators for line & last line let i = 0; @@ -3113,10 +3113,10 @@ var ICEcoder = { } // If the avg block height for results in results bar is above 0.5 pixels high, we can add a DOM elem if (0.5 <= avgBlockH) { - // Grey for a matching line, transparent if no match - blockColor = haveMatch ? "rgba(128,128,128,0.3)" : "transparent"; // Add the DOM elem into our rBlocks string - rBlocks += '
'; + if (true === haveMatch) { + rBlocks += '
'; + } } });