diff --git a/common/content/commandline.js b/common/content/commandline.js
index ee7c30db..72a6ce8c 100644
--- a/common/content/commandline.js
+++ b/common/content/commandline.js
@@ -47,13 +47,6 @@ var CommandWidgets = Class("CommandWidgets", {
onclick="dactyl.modules.commandline.onMultilineOutputEvent(event)"/>
-
-
-
-
@@ -77,7 +70,18 @@ var CommandWidgets = Class("CommandWidgets", {
onblur="dactyl.modules.commandline.onMultilineInputEvent(event);"/>
- .elements()
+ .elements(),
+
+ before:
+
+
+
+
+
+ .elements(),
});
this.elements = {};
@@ -709,9 +713,11 @@ var CommandLine = Module("commandline", {
// FIXME: need to make sure an open MOW is closed when commands
// that don't generate output are executed
- if (this.widgets.mowContainer.collapsed)
+ if (this.widgets.mowContainer.collapsed) {
+ elem.scrollTop = 0;
while (body.firstChild)
body.removeChild(body.firstChild);
+ }
body.appendChild(output);
@@ -720,7 +726,6 @@ var CommandLine = Module("commandline", {
commandline.updateOutputHeight(true);
- elem.scrollTop = 0;
if (options["more"] && Buffer.isScrollable(elem, 1)) {
// start the last executed command's output at the top of the screen
let elements = doc.getElementsByClassName("ex-command-output");
diff --git a/common/content/statusline.js b/common/content/statusline.js
index baeb4f49..f9ee56cf 100644
--- a/common/content/statusline.js
+++ b/common/content/statusline.js
@@ -57,7 +57,9 @@ var StatusLine = Module("statusline", {
;
- util.dump("statusbar: load overlay");
+ for each (let attr in prepend..@key)
+ attr.parent().@id = "dactyl-statusline-field-" + attr;
+
util.overlayWindow(window, {
objects: this.widgets = { get status() this.container },
prepend: prepend.elements()