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:
@@ -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 });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user