mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:07:59 +01:00
Fix completion list for functions that return augmented arrays.
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))
|
||||
if (!(isArray(items) || isArray(items.__proto__)))
|
||||
items = [x for (x in Iterator(items || []))];
|
||||
if (this._completions !== items) {
|
||||
delete this.cache.filtered;
|
||||
|
||||
Reference in New Issue
Block a user