1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:32:28 +01:00

Move completion indicators to CSS class. Provide current/default :sty/:hi CSS completions. Et cetera.

This commit is contained in:
Kris Maglione
2008-11-26 04:57:21 +00:00
parent f1a6bcc671
commit b38fff6137
6 changed files with 52 additions and 34 deletions

View File

@@ -48,10 +48,10 @@ const template = {
var desc = this.process[1].call(this, item, this.getKey(item, "description"));
}
return <ul class={class || "hl-CompItem"}>
<li class="hl-CompResult">{text}</li>
<li class="hl-CompDesc">{desc}</li>
</ul>;
return <div class={class || "hl-CompItem"}>
<li class="hl-CompResult">{text}&#160;</li>
<li class="hl-CompDesc">{desc}&#160;</li>
</div>;
},
bookmarkDescription: function (item, text)
@@ -147,7 +147,7 @@ const template = {
{
return this.highlightSubstrings(str, (function ()
{
while (res = re.exec(str) && res[0].length)
while ((res = re.exec(str)) && res[0].length)
yield [res.index, res[0].length];
})(), highlight || template.filter);
},