From 6d81b04152fef7c5767fdeac6b16de8c15d1b027 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 27 Sep 2010 15:19:18 -0400 Subject: [PATCH] Close the command-line on multiline echo. --- common/content/commandline.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 5af44809..5d6acfdb 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -349,7 +349,7 @@ const CommandLine = Module("commandline", { dactyl.triggerObserver("echoLine", str, highlightGroup, forceSingle); if (!this.commandVisible) - commandline.hide(); + this.hide(); let field = this.widgets.active.message.inputField; if (!forceSingle && field.editor.rootElement.scrollWidth > field.scrollWidth) @@ -367,6 +367,9 @@ const CommandLine = Module("commandline", { let doc = this.widgets.multilineOutput.contentDocument; let win = this.widgets.multilineOutput.contentWindow; + if (!this.commandVisible) + this.hide(); + dactyl.triggerObserver("echoMultiline", str, highlightGroup); // If it's already XML, assume it knows what it's doing.