1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:32:27 +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 = []; var optionCompletions = [];
if (prefix) // What is this all about then, eh? It's too late to guess... -- djk
filter = filter.replace(ret.prefix, ""); //if (prefix)
// filter = filter.replace(ret.prefix, "");
if (special) // list completions for about:config entries if (special) // list completions for about:config entries
{ {
@@ -725,9 +726,7 @@ function Options() //{{{
if (!filter) if (!filter)
{ {
let opts = [[prefix + option.name, option.description] return [0, [[prefix + option.name, option.description] for (option in opts)]];
for (option in opts)];
return [0, opts];
} }
else if (filter.indexOf("=") == -1) else if (filter.indexOf("=") == -1)
{ {