mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:27:58 +01:00
fix :set completion when there's no filter
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user