mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 01:25:45 +01:00
Allow IDs instead of names in :ext* commands.
This commit is contained in:
@@ -842,9 +842,10 @@ var CompletionContext = Class("CompletionContext", {
|
||||
|
||||
Filter: {
|
||||
text: function (item) {
|
||||
let text = Array.concat(item.text);
|
||||
let text = item.texts || Array.concat(item.text);
|
||||
for (let [i, str] in Iterator(text)) {
|
||||
if (this.match(String(str))) {
|
||||
item.texts = text;
|
||||
item.text = String(text[i]);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user