1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 00:15:46 +01:00

Utilise object destructuring in parameter lists of stray map definitions.

This commit is contained in:
Doug Kearns
2013-08-24 21:54:28 +10:00
parent acb6805646
commit e0a0388382
5 changed files with 90 additions and 90 deletions

View File

@@ -1764,9 +1764,9 @@ var Commands = Module("commands", {
mappings.add([modes.COMMAND],
["@:"], "Repeat the last Ex command",
function (args) {
function ({ count }) {
if (commands.repeat) {
for (let i in util.interruptibleRange(0, Math.max(args.count, 1), 100))
for (let i in util.interruptibleRange(0, Math.max(count, 1), 100))
dactyl.execute(commands.repeat);
}
else