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