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

:map sans -count ≡ :map -count 〈lhs〉 <count>〈rhs〉

This commit is contained in:
Kris Maglione
2011-06-01 17:49:08 -04:00
parent 1625cbbd4c
commit 1d01dc70c3

View File

@@ -477,6 +477,9 @@ var Mappings = Module("mappings", {
return;
}
if (args[1] && !args["-count"] && !args["-ex"] && !args["-javascript"])
args[1] = "<count>" + args[1];
let [lhs, rhs] = args;
if (noremap)
args["-builtin"] = true;
@@ -492,7 +495,7 @@ var Mappings = Module("mappings", {
contexts.bindMacro(args, "-keys", function (params) params),
{
arg: args["-arg"],
count: args["-count"],
count: args["-count"] || !(args["-ex"] || args["-javascript"]),
noremap: args["-builtin"],
persist: !args["-nopersist"],
get rhs() String(this.action),