1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 11:38:00 +01:00

Fix oddly broken completion results.

--HG--
branch : xslt
This commit is contained in:
Kris Maglione
2009-10-27 15:59:56 -04:00
parent a8c6378b43
commit 01c4f1b136

View File

@@ -234,10 +234,10 @@ CompletionContext.prototype = {
if (!context.hasItems) if (!context.hasItems)
return []; return [];
let prefix = self.value.substring(minStart, context.offset); let prefix = self.value.substring(minStart, context.offset);
return context.items.map(function (item) { return context.items.map(function (item) ({
item.text = prefix + item.text; text: prefix + item.text,
return item; __proto__: item
}); }));
}); });
return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring }; return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring };
} }