summaryrefslogtreecommitdiff
path: root/common/modules/template.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-12-22 20:44:40 -0500
committerKris Maglione <maglione.k@gmail.com>2010-12-22 20:44:40 -0500
commit03b179433d2c669a5f8c27f1f9d4ec0ea4c7ace6 (patch)
treefde28418181aa2a1b80acbffa2fe979bef04899d /common/modules/template.jsm
parentc6462e49b3dd1424b8354ee63ab09365bc764ffe (diff)
downloadpentadactyl-03b179433d2c669a5f8c27f1f9d4ec0ea4c7ace6.tar.gz
Fix completion filter highlighting.
Diffstat (limited to 'common/modules/template.jsm')
-rw-r--r--common/modules/template.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/template.jsm b/common/modules/template.jsm
index b8bab403..bdb2b8b3 100644
--- a/common/modules/template.jsm
+++ b/common/modules/template.jsm
@@ -173,7 +173,7 @@ const Template = Module("Template", {
break;
XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>;
- s += highlight.apply(this, Array.slice(args || str.substr(i, length)));
+ s += highlight.apply(this, Array.concat(args || str.substr(i, length)));
start = i + length;
}
return s + <>{str.substr(start)}</>;