From 2c6015837f218bec1b9c41e0e780488f9d8314e6 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 19 Dec 2008 15:12:38 -0500 Subject: [PATCH] Fix g<, sort-of. Fix some commandline.echo quirks, as well. --- common/content/ui.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/content/ui.js b/common/content/ui.js index f046cce6..bd5a8dfa 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -568,10 +568,10 @@ function CommandLine() //{{{ * after interpolated data. */ XML.ignoreWhitespace = typeof str != "xml"; - let output = util.xmlToDom(
{template.maybeXML(str)}
, doc); + lastMowOutput =
{template.maybeXML(str)}
; + let output = util.xmlToDom(lastMowOutput, doc); XML.ignoreWhitespace = true; - lastMowOutput = output; // FIXME: need to make sure an open MOW is closed when commands // that don't generate output are executed @@ -778,8 +778,7 @@ function CommandLine() //{{{ function () { if (lastMowOutput) - commandline.echo(lastMowOutput, - commandline.HL_NORMAL, commandline.FORCE_MULTILINE); + echoMultiline(lastMowOutput, commandline.HL_NORMAL); else liberator.beep(); }); @@ -997,7 +996,10 @@ function CommandLine() //{{{ let action = echoLine; if (!single && (!outputContainer.collapsed || messageBox.value == lastEcho)) + { + highlightGroup += " Message"; action = echoMultiline; + } if ((flags & this.FORCE_MULTILINE) || (/\n/.test(str) || typeof str == "xml") && !(flags & this.FORCE_SINGLELINE)) action = echoMultiline;