mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +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);
|
dactyl.triggerObserver("echoLine", str, highlightGroup, forceSingle);
|
||||||
|
|
||||||
if (!this.commandVisible)
|
if (!this.commandVisible)
|
||||||
commandline.hide();
|
this.hide();
|
||||||
|
|
||||||
let field = this.widgets.active.message.inputField;
|
let field = this.widgets.active.message.inputField;
|
||||||
if (!forceSingle && field.editor.rootElement.scrollWidth > field.scrollWidth)
|
if (!forceSingle && field.editor.rootElement.scrollWidth > field.scrollWidth)
|
||||||
@@ -367,6 +367,9 @@ const CommandLine = Module("commandline", {
|
|||||||
let doc = this.widgets.multilineOutput.contentDocument;
|
let doc = this.widgets.multilineOutput.contentDocument;
|
||||||
let win = this.widgets.multilineOutput.contentWindow;
|
let win = this.widgets.multilineOutput.contentWindow;
|
||||||
|
|
||||||
|
if (!this.commandVisible)
|
||||||
|
this.hide();
|
||||||
|
|
||||||
dactyl.triggerObserver("echoMultiline", str, highlightGroup);
|
dactyl.triggerObserver("echoMultiline", str, highlightGroup);
|
||||||
|
|
||||||
// If it's already XML, assume it knows what it's doing.
|
// If it's already XML, assume it knows what it's doing.
|
||||||
|
|||||||
Reference in New Issue
Block a user