From bc55e0849faeca586e02833f217f5ab729ba50b2 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 21 Aug 2008 00:18:25 +0000 Subject: [PATCH] add general placeholder text for the replacement text of programmatically added user commands in :command output --- content/commands.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index fb2f05e4..190546d8 100644 --- a/content/commands.js +++ b/content/commands.js @@ -670,8 +670,12 @@ liberator.Commands = function () //{{{ var str = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + ""; for (var i = 0; i < cmdlist.length; i++) - str += ""; + { + // programmatically added user commands have a null replacementText + str += ""; + } str += "
NameArgsDefinition
" + cmdlist[i].name + "" + "*" + "" + liberator.util.escapeHTML(cmdlist[i].replacementText) + "
" + cmdlist[i].name + "" + "*" + "" + liberator.util.escapeHTML(cmdlist[i].replacementText || "function () { ... }") + "
"; + liberator.commandline.echo(str, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE); } else