summaryrefslogtreecommitdiff
path: root/common/content/commandline.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-10-15 20:31:20 -0400
committerKris Maglione <maglione.k@gmail.com>2010-10-15 20:31:20 -0400
commite38b8568290dc965b637f937fcafa42b6e725a23 (patch)
tree2094d95bbafb9079c0dfbcdcab21cfd5e8f9b560 /common/content/commandline.js
parentb940a9db96bd953538f182c9ec82ce907945eafd (diff)
downloadpentadactyl-e38b8568290dc965b637f937fcafa42b6e725a23.tar.gz
Fix double command output for things like :ls|ls
Diffstat (limited to 'common/content/commandline.js')
-rw-r--r--common/content/commandline.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/commandline.js b/common/content/commandline.js
index fd9f9e74..67f85d01 100644
--- a/common/content/commandline.js
+++ b/common/content/commandline.js
@@ -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;
},
/**