mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 02:47:59 +01:00
Fix broken :exte completion.
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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 <Return> in hint mode",
|
||||
"Change the behavior of <Return> 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)")]
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user