1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 05:18:12 +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)
return [];
let prefix = self.value.substring(minStart, context.offset);
return context.items.map(function (item) {
item.text = prefix + item.text;
return item;
});
return context.items.map(function (item) ({
text: prefix + item.text,
__proto__: item
}));
});
return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring };
}