1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:18:00 +01:00
This commit is contained in:
Kris Maglione
2008-11-27 06:08:08 +00:00
parent b3009797da
commit 82ef520fd5
2 changed files with 5 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ function Commands() //{{{
if (val != null)
res.push(quote(val));
}
for (let [,arg] in Iterator(args || []))
for (let [,arg] in Iterator(args.arguments || []))
res.push(quote(arg));
let str = args.literalArg;

View File

@@ -950,8 +950,11 @@ function Options() //{{{
let ret = {};
let matches, prefix, postfix, valueGiven;
[matches, prefix, ret.name, postfix, valueGiven, ret.operator, ret.value] =
let [matches, prefix, name, postfix, valueGiven, operator, value] =
args.match(/^\s*(no|inv)?([a-z_]+)([?&!])?\s*(([-+^]?)=(.*))?\s*$/) || [];
ret.name = name;
ret.operator = operator;
ret.value = value;
ret.args = args;
ret.onlyNonDefault = false; // used for :set to print non-default options