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:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user