From f5b21739798a8b545fefdf8d1471bfd5e0bf77d7 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 717dbe37..5b5021fe 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(); }); @@ -986,7 +985,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;