mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-07 06:15:44 +01:00
Serialize the :map -count flag.
This commit is contained in:
@@ -595,6 +595,7 @@ var Mappings = Module("mappings", {
|
|||||||
command: "map",
|
command: "map",
|
||||||
options: array([
|
options: array([
|
||||||
hive.name !== "user" && ["-group", hive.name],
|
hive.name !== "user" && ["-group", hive.name],
|
||||||
|
map.count && ["-count"],
|
||||||
["-modes", uniqueModes(map.modes)],
|
["-modes", uniqueModes(map.modes)],
|
||||||
["-description", map.description],
|
["-description", map.description],
|
||||||
map.silent && ["-silent"]])
|
map.silent && ["-silent"]])
|
||||||
|
|||||||
@@ -165,8 +165,11 @@ var Command = Class("Command", {
|
|||||||
if (args.bang && !this.bang)
|
if (args.bang && !this.bang)
|
||||||
throw FailedAssertion(_("command.noBang"));
|
throw FailedAssertion(_("command.noBang"));
|
||||||
|
|
||||||
|
args.doc = this.hive.group.lastDocument;
|
||||||
|
|
||||||
return !dactyl.trapErrors(function exec() {
|
return !dactyl.trapErrors(function exec() {
|
||||||
let extra = this.hive.argsExtra(args);
|
let extra = this.hive.argsExtra(args);
|
||||||
|
|
||||||
for (let k in properties(extra))
|
for (let k in properties(extra))
|
||||||
if (!(k in args))
|
if (!(k in args))
|
||||||
Object.defineProperty(args, k, Object.getOwnPropertyDescriptor(extra, k));
|
Object.defineProperty(args, k, Object.getOwnPropertyDescriptor(extra, k));
|
||||||
|
|||||||
Reference in New Issue
Block a user