From da752c8907a878a7a47045f9d97dbfef26935e5d Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 28 Sep 2008 11:51:25 +0000 Subject: [PATCH] simplify messages list generation in :messages --- content/ui.js | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/content/ui.js b/content/ui.js index 4055ad1d..afd1e6fa 100644 --- a/content/ui.js +++ b/content/ui.js @@ -508,20 +508,11 @@ liberator.CommandLine = function () //{{{ "Display previously given messages", function () { - // TODO: the MOW<->command-line disjoint is really annoying - if (messageHistory.length == 1) - { - liberator.commandline.echo(messageHistory.messages[0], liberator.commandline.HL_NORMAL); - } - else if (messageHistory.length > 1) - { - let list = ""; + // TODO: color messages + let list = messageHistory.messages.join("
"); - for (let [,message] in Iterator(messageHistory.messages)) - list += message + "
"; - - liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE); - } + // TODO: are messages all single line? + liberator.commandline.echo(list); }, { argCount: "0" }); /////////////////////////////////////////////////////////////////////////////}}}