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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user