From ad458f4be1de482c8b47f9beeb9f3fb96be6fa90 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 11 Oct 2010 20:12:50 -0400 Subject: [PATCH] Fix broken :exte completion. --- common/content/completion.js | 4 ++-- common/content/hints.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/content/completion.js b/common/content/completion.js index 495693a6..661c87f1 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -273,7 +273,7 @@ const CompletionContext = Class("CompletionContext", { get completions() this._completions || [], set completions(items) { // Accept a generator - if (!(isArray(items) || isArray(items.__proto__))) + if (items && !(isArray(items) || isArray(items.__proto__))) items = [x for (x in Iterator(items || []))]; if (this._completions !== items) { delete this.cache.filtered; @@ -892,7 +892,7 @@ const Completion = Module("completion", { "Items which are completed at the :open prompts", "charlist", typeof(config.defaults["complete"]) == "string" ? config.defaults["complete"] : "slf", { - completer: function (context) array(values(completion.urlCompleters)) + completer: function (context) values(completion.urlCompleters) }); options.add(["wildanchor", "wia"], diff --git a/common/content/hints.js b/common/content/hints.js index e4d83f50..8a768e4b 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -1122,7 +1122,7 @@ const Hints = Module("hints", { options.add(["followhints", "fh"], // FIXME: this description isn't very clear but I can't think of a // better one right now. - "Change the behaviour of in hint mode", + "Change the behavior of in hint mode", "number", 0, { completer: function () [ @@ -1141,7 +1141,7 @@ const Hints = Module("hints", { ["wordstartswith", "The typed characters are split on whitespace. The resulting groups must all match the beginings of words, in order."], ["firstletters", "Behaves like wordstartswith, but all groups much match a sequence of words."], ["custom", "Delegate to a custom function: dactyl.plugins.customHintMatcher(hintString)"], - ["transliterated", UTF8("When true, special latin characters are translated to their ascii equivalent (e.g., é -> e)")] + ["transliterated", UTF8("When true, special latin characters are translated to their ASCII equivalents (e.g., é ⇒ e)")] ] });