mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 11:27:58 +01:00
Fix oddly broken completion results.
--HG-- branch : xslt
This commit is contained in:
@@ -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 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user