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