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

Replace weird mystery meat args of mapping actions with a proper object.

This commit is contained in:
Kris Maglione
2010-12-29 22:21:00 -05:00
parent f67a50147e
commit cb97f1cd25
12 changed files with 87 additions and 98 deletions

View File

@@ -200,7 +200,7 @@ var Marks = Module("marks", {
mappings.add(myModes,
["m"], "Set mark at the cursor position",
function (arg) {
function ({ arg }) {
dactyl.assert(/^[a-zA-Z]$/.test(arg));
marks.add(arg);
},
@@ -208,7 +208,7 @@ var Marks = Module("marks", {
mappings.add(myModes,
["'", "`"], "Jump to the mark in the current buffer",
function (arg) { marks.jumpTo(arg); },
function (args) { marks.jumpTo(args.arg); },
{ arg: true });
},