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

I cant sleep.

This commit is contained in:
Kris Maglione
2008-10-02 07:04:31 +00:00
parent c37500251a
commit 9d370cfc89
3 changed files with 17 additions and 14 deletions

View File

@@ -929,29 +929,29 @@ liberator.Editor = function () //{{{
else // list all (for that filter {i,c,!})
{
var searchFilter = (filter == "!") ? "!ci" : filter + "!"; // ! -> list all, on c or i ! matches too)
XML.prettyPrinting = false;
let list = <></>;
let list = <table/>;
for (let tmplhs in abbrev)
{
abbrev[tmplhs].forEach(function (abbr)
{
if (searchFilter.indexOf(abbr[0]) > -1)
{
list += <tr>
<td>{abbr[0]}</td>
<td>{tmplhs}</td>
<td>{abbr[1]}</td>
</tr>;
list.* += <tr>
<td>{abbr[0]}</td>
<td>{tmplhs}</td>
<td>{abbr[1]}</td>
</tr>;
}
});
}
if (!list.length())
if (!list.*.length())
{
liberator.echoerr("No abbreviations found");
return;
}
list = <table>{list}</table>
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
}
},