1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-31 09:43:33 +02: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

@@ -169,7 +169,7 @@ const AutoCommands = Module("autocommands", {
cmd.toString = function toString() "-javascript " + cmd.source;
}
else {
cmd = function cmd(args) dactyl.execute(commands.replaceTokens(cmd.source, args), null, true, cmd.sourcing);
cmd = function cmd(args) commands.execute(cmd.source, args, false, null, cmd.sourcing);
cmd.sourcing = io.sourcing && update({}, io.sourcing);
cmd.toString = function toString() cmd.source;
}