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

fix :set completion when there's no filter

This commit is contained in:
Doug Kearns
2008-11-04 17:30:52 +00:00
parent f371419666
commit 654bd0c2ea

View File

@@ -685,8 +685,9 @@ function Options() //{{{
{
var optionCompletions = [];
if (prefix)
filter = filter.replace(ret.prefix, "");
// What is this all about then, eh? It's too late to guess... -- djk
//if (prefix)
// filter = filter.replace(ret.prefix, "");
if (special) // list completions for about:config entries
{
@@ -725,9 +726,7 @@ function Options() //{{{
if (!filter)
{
let opts = [[prefix + option.name, option.description]
for (option in opts)];
return [0, opts];
return [0, [[prefix + option.name, option.description] for (option in opts)]];
}
else if (filter.indexOf("=") == -1)
{