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