1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 14:15:47 +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

@@ -519,7 +519,10 @@ const CommandLine = Module("commandline", {
commandOutput: function (xml) {
XML.ignoreWhitespace = false;
XML.prettyPrinting = false;
this.echo(<>:{this.command}<br/>{xml}</>, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE);
if (this.command)
this.echo(<>:{this.command}</>, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE);
this.echo(xml, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE);
this.command = null;
},
/**