1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 19:44:12 +01:00

Fix option completions.

This commit is contained in:
Kris Maglione
2011-02-11 10:28:27 -05:00
parent e97cb27f4c
commit 5ba148ad68

View File

@@ -826,7 +826,7 @@ var Options = Module("options", {
if (matches) {
ret.option = this.get(ret.name, ret.scope);
if (!ret.option && (ret.option = options.get(prefix + ret.name, ret.scope))) {
if (!ret.option && (ret.option = this.get(prefix + ret.name, ret.scope))) {
ret.name = prefix + ret.name;
prefix = "";
}
@@ -1021,6 +1021,8 @@ var Options = Module("options", {
}
function setCompleter(context, args, modifiers) {
const { completion } = modules;
let filter = context.filter;
if (args.bang) { // list completions for about:config entries