1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:27:58 +01:00

Fix completion filter highlighting wrt white space collapsing.

This commit is contained in:
Kris Maglione
2008-10-16 00:04:49 +00:00
parent a1003650ea
commit 00039bf6c5

View File

@@ -90,6 +90,7 @@ const template = {
let i;
while ((i = lcstr.indexOf(lcfilter, start)) > -1)
{
XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>;
s += <span class="hl-Filter">{str.substr(i, filter.length)}</span>;
start = i + filter.length;