mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:27:59 +01:00
Deal with default values when providing command option completion. Closes issue #146.
This commit is contained in:
@@ -760,7 +760,7 @@ const Commands = Module("commands", {
|
||||
function matchOpts(arg) {
|
||||
// Push possible option matches into completions
|
||||
if (complete && !onlyArgumentsRemaining)
|
||||
completeOpts = options.filter(function (opt) opt.multiple || !(opt.names[0] in args));
|
||||
completeOpts = options.filter(function (opt) opt.multiple || !set.has(args, opt.names[0]));
|
||||
}
|
||||
function resetCompletions() {
|
||||
completeOpts = null;
|
||||
|
||||
Reference in New Issue
Block a user