mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +01:00
Fix some bugs.
--HG-- branch : groups
This commit is contained in:
@@ -156,7 +156,10 @@ var Command = Class("Command", {
|
||||
throw FailedAssertion("E477: No ! allowed");
|
||||
|
||||
return !dactyl.trapErrors(function exec() {
|
||||
update({}, this.hive.argsExtra(args), args);
|
||||
let extra = this.hive.argsExtra(args);
|
||||
for (let k in properties(extra))
|
||||
if (!(k in args))
|
||||
Object.defineProperty(args, k, Object.getOwnPropertyDescriptor(extra, k));
|
||||
|
||||
if (this.always)
|
||||
this.always(args, modifiers);
|
||||
@@ -1339,7 +1342,7 @@ var Commands = Module("commands", {
|
||||
args["-description"],
|
||||
contexts.bindMacro(args, "-ex",
|
||||
function makeParams(args, modifiers) ({
|
||||
args: {
|
||||
args: {
|
||||
__proto__: args,
|
||||
toString: function () this.string,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user