1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:57:59 +01:00

Fix macro interpolation of null counts in key bindings.

This commit is contained in:
Kris Maglione
2010-12-26 14:41:10 -05:00
parent 289b766266
commit cd55bfbcb1
2 changed files with 5 additions and 5 deletions

View File

@@ -335,14 +335,14 @@ var Command = Class("Command", {
case "-keys":
let silent = args["-silent"];
rhs = events.canonicalKeys(rhs, true);
let macro = util.compileMacro(rhs, true);
var action = function action(count) events.feedkeys(macro({ count: count }),
var action = function action(count) events.feedkeys(action.macro({ count: count || "" }),
noremap, silent);
action.macro = util.compileMacro(rhs, true);
break;
case "-ex":
macro = util.compileMacro(rhs, true);
action = function action() commands.execute(macro, makeParams.apply(this, arguments),
action = function action() commands.execute(action.macro, makeParams.apply(this, arguments),
false, null, action.sourcing);
action.macro = util.compileMacro(rhs, true);
action.sourcing = io.sourcing && update({}, io.sourcing);
break;
case "-javascript":