1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 19:54:12 +01:00

Fix double command output for things like :ls|ls

This commit is contained in:
Kris Maglione
2010-10-15 20:31:20 -04:00
parent b940a9db96
commit e38b856829
3 changed files with 7 additions and 8 deletions

View File

@@ -328,13 +328,12 @@ const Dactyl = Module("dactyl", {
modifiers = modifiers || {};
if (!silent)
commandline.command = str.replace(/^\s*:\s*/, "");
for (let [command, args] in commands.parseCommands(str.replace(/^'(.*)'$/, "$1"))) {
if (command === null)
throw FailedAssertion("E492: Not a " + config.appName + " command: " + args.commandString);
if (!silent)
commandline.command = str.replace(/^\s*:\s*/, "");
command.execute(args, modifiers);
}
},