mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 04:45:46 +01:00
Fix echo bugs. Closes issue #414.
This commit is contained in:
@@ -119,15 +119,20 @@ var MOW = Module("mow", {
|
||||
// after interpolated data.
|
||||
XML.ignoreWhitespace = XML.prettyPrinting = false;
|
||||
|
||||
if (isObject(data)) {
|
||||
if (isObject(data) && !isinstance(data, _)) {
|
||||
this.lastOutput = null;
|
||||
|
||||
var output = util.xmlToDom(<div class="ex-command-output" style="white-space: nowrap" highlight={highlightGroup}/>,
|
||||
this.document);
|
||||
data.document = this.document;
|
||||
output.appendChild(data.message);
|
||||
|
||||
this.messages.push(data);
|
||||
try {
|
||||
output.appendChild(data.message);
|
||||
}
|
||||
catch (e) {
|
||||
util.reportError(e);
|
||||
util.dump(data);
|
||||
this.messages.push(data);
|
||||
}
|
||||
}
|
||||
else {
|
||||
let style = isString(data) ? "pre" : "nowrap";
|
||||
|
||||
Reference in New Issue
Block a user