1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 12:35:45 +01:00

Merge default.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-23 21:00:25 -05:00
2 changed files with 12 additions and 1 deletions

View File

@@ -1418,7 +1418,13 @@ var Buffer = Module("buffer", {
commands.add(["pa[geinfo]"],
"Show various page information",
function (args) { buffer.showPageInfo(true, args[0]); },
function (args) {
let arg = args[0];
let opt = options.get("pageinfo");
dactyl.assert(opt.validator(opt.parse(arg)), "E475: Invalid argument: " + arg);
buffer.showPageInfo(true, arg);
},
{
argCount: "?",
completer: function (context) {