1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 23:47:58 +01:00

Close the command-line on multiline echo.

This commit is contained in:
Kris Maglione
2010-09-27 15:19:18 -04:00
parent 7645fca3fe
commit 6d81b04152

View File

@@ -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.