mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:27:57 +01:00
Fix some brokenness.
This commit is contained in:
@@ -1253,7 +1253,7 @@ const Options = Module("options", {
|
|||||||
|
|
||||||
// Fill in the current values if we're removing
|
// Fill in the current values if we're removing
|
||||||
if (opt.operator == "-" && isArray(opt.values)) {
|
if (opt.operator == "-" && isArray(opt.values)) {
|
||||||
let have = set([i.text for (i in context.allItems)]);
|
let have = set([i.text for (i in values(context.allItems.items))]);
|
||||||
context = context.fork("current-values", 0);
|
context = context.fork("current-values", 0);
|
||||||
context.anchored = optcontext.anchored;
|
context.anchored = optcontext.anchored;
|
||||||
context.maxItems = optcontext.maxItems;
|
context.maxItems = optcontext.maxItems;
|
||||||
@@ -1261,7 +1261,7 @@ const Options = Module("options", {
|
|||||||
context.filters.push(function (i) !set.has(have, i.text));
|
context.filters.push(function (i) !set.has(have, i.text));
|
||||||
completion.optionValue(context, opt.name, opt.operator, null,
|
completion.optionValue(context, opt.name, opt.operator, null,
|
||||||
function (context) {
|
function (context) {
|
||||||
context.generate = function () option.values.map(function (o) [o, ""]);
|
context.generate = function () option.value.map(function (o) [o, ""]);
|
||||||
});
|
});
|
||||||
context.title = ["Current values"];
|
context.title = ["Current values"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user