1
0
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:
Kris Maglione
2011-10-01 02:51:18 -04:00
parent 2f776eebe7
commit 435cadb1a0
2 changed files with 14 additions and 10 deletions

View File

@@ -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;
}