1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 20:45:46 +01:00

Allow things like :com! foo\n \ echo 1\n \ echo 2

This commit is contained in:
Kris Maglione
2010-10-11 02:47:07 -04:00
parent 5a670ebd7b
commit 4efc6a3972
6 changed files with 127 additions and 99 deletions

View File

@@ -384,8 +384,8 @@ const Mappings = Module("mappings", {
}
else if (args["-ex"]) {
rhs = ["-ex", rhs];
action = function action(count)
dactyl.execute(commands.replaceTokens(rhs[1], { count: count }), null, true, action.sourcing);
action = function action(count) commands.execute(rhs[1], { count: count },
false, null, action.sourcing);
action.sourcing = io.sourcing && update({}, io.sourcing);
}
else {