mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
Fix completion filter highlighting wrt white space collapsing.
This commit is contained in:
@@ -90,6 +90,7 @@ const template = {
|
|||||||
let i;
|
let i;
|
||||||
while ((i = lcstr.indexOf(lcfilter, start)) > -1)
|
while ((i = lcstr.indexOf(lcfilter, start)) > -1)
|
||||||
{
|
{
|
||||||
|
XML.ignoreWhitespace = false;
|
||||||
s += <>{str.substring(start, i)}</>;
|
s += <>{str.substring(start, i)}</>;
|
||||||
s += <span class="hl-Filter">{str.substr(i, filter.length)}</span>;
|
s += <span class="hl-Filter">{str.substr(i, filter.length)}</span>;
|
||||||
start = i + filter.length;
|
start = i + filter.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user