From a7c5da9f6f1eee48355843bfdf38d08ad78056a3 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 9 Nov 2009 03:28:39 +1100 Subject: [PATCH] Restore :helpall. --- common/content/liberator.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/content/liberator.js b/common/content/liberator.js index 2ab21379..8d72c859 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -864,10 +864,10 @@ const liberator = (function () //{{{ completion.help = function help(context, unchunked) { context.title = ["Help"]; context.anchored = false; - context.key = unchunked; + context.key = !!unchunked; // XXX: better as a precondition context.completions = services.get("liberator:").HELP_TAGS; if (unchunked) - context.keys = { text: "text", description: function () "all" }; + context.keys = { text: 0, description: function () "all" }; }; completion.menuItem = function menuItem(context) { @@ -1394,7 +1394,7 @@ const liberator = (function () //{{{ { if (topic in services.get("liberator:").FILE_MAP) return topic; - unchunked = !!unchunked; + let items = completion._runCompleter("help", topic, null, unchunked).items; let partialMatch = null; @@ -1505,9 +1505,9 @@ const liberator = (function () //{{{ */ help: function (topic, unchunked) { - if (!topic && !unchunked) + if (!topic) { - let helpFile = options["helpfile"]; + let helpFile = unchunked ? "all" : options["helpfile"]; if (helpFile in services.get("liberator:").FILE_MAP) liberator.open("liberator://help/" + helpFile, { from: "help" }); else