1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 08:27:59 +01:00

Fix broken :exte completion.

This commit is contained in:
Kris Maglione
2010-10-11 20:12:50 -04:00
parent 2597be756a
commit ad458f4be1
2 changed files with 4 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ const CompletionContext = Class("CompletionContext", {
get completions() this._completions || [], get completions() this._completions || [],
set completions(items) { set completions(items) {
// Accept a generator // Accept a generator
if (!(isArray(items) || isArray(items.__proto__))) if (items && !(isArray(items) || isArray(items.__proto__)))
items = [x for (x in Iterator(items || []))]; items = [x for (x in Iterator(items || []))];
if (this._completions !== items) { if (this._completions !== items) {
delete this.cache.filtered; delete this.cache.filtered;
@@ -892,7 +892,7 @@ const Completion = Module("completion", {
"Items which are completed at the :open prompts", "Items which are completed at the :open prompts",
"charlist", typeof(config.defaults["complete"]) == "string" ? config.defaults["complete"] : "slf", "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"], options.add(["wildanchor", "wia"],

View File

@@ -1122,7 +1122,7 @@ const Hints = Module("hints", {
options.add(["followhints", "fh"], options.add(["followhints", "fh"],
// FIXME: this description isn't very clear but I can't think of a // FIXME: this description isn't very clear but I can't think of a
// better one right now. // better one right now.
"Change the behaviour of <Return> in hint mode", "Change the behavior of <Return> in hint mode",
"number", 0, "number", 0,
{ {
completer: function () [ 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."], ["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."], ["firstletters", "Behaves like wordstartswith, but all groups much match a sequence of words."],
["custom", "Delegate to a custom function: dactyl.plugins.customHintMatcher(hintString)"], ["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)")]
] ]
}); });