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

More completion stuff. And move vimperator.png to chrome://liberator2/content/ -- long story.

This commit is contained in:
Kris Maglione
2008-11-24 10:10:49 +00:00
parent b2a87273f8
commit 9b14f6e331
14 changed files with 376 additions and 330 deletions

View File

@@ -308,7 +308,7 @@ const liberator = (function () //{{{
},
{
bang: true,
completer: function (context) completion.help(context.filter),
completer: function (context) completion.help(context),
literal: true
});
@@ -893,17 +893,17 @@ const liberator = (function () //{{{
}, 500);
}
var [, items] = completion.help(topic);
var items = completion.runCompleter("help", topic);
var partialMatch = -1;
for (let i = 0; i < items.length; i++)
for (let [i, item] in Iterator(items))
{
if (items[i][0] == topic)
if (item[0] == topic)
{
jumpToTag(items[i][1], items[i][0]);
jumpToTag(item[1], item[0]);
return;
}
else if (partialMatch == -1 && items[i][0].indexOf(topic) > -1)
else if (partialMatch == -1 && item[0].indexOf(topic) > -1)
{
partialMatch = i;
}