From a9baebe873f95b1f1533fc60ade0f67768f67ae4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 7 Dec 2008 09:36:44 -0500 Subject: [PATCH] Dont force :echo "foo" to the MOW --- common/content/ui.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/content/ui.js b/common/content/ui.js index fb05e8b9..f6663812 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -615,7 +615,7 @@ function CommandLine() //{{{ if (typeof arg === "object") arg = util.objectToString(arg, useColor); - else if (typeof arg != "xml") + else if (typeof arg == "string" && /\n/.test(arg)) arg = {arg}; return arg; @@ -883,7 +883,6 @@ function CommandLine() //{{{ open: function open(prompt, cmd, extendedMode) { - liberator.dump("commandline.open: " + (extendedMode && modes.getMode(extendedMode).name)); // save the current prompts, we need it later if the command widget // receives focus without calling the this.open() method currentPrompt = prompt || ""; @@ -910,7 +909,6 @@ function CommandLine() //{{{ close: function close() { let mode = currentExtendedMode; - liberator.dump("commandline.close: " + (mode && modes.getMode(mode).name)); currentExtendedMode = null; liberator.triggerCallback("cancel", mode);