aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Baumstark2012-01-23 16:35:31 +0100
committerNiklas Baumstark2012-04-10 23:54:38 +0200
commit8179e6da52f516b528ba000f1a038a59f86d37a6 (patch)
tree9b32996f557c8d3d7071ea71235ba3e2d9133586
parent59b096f2c4d9f5406cfa10f71b64887ef1e9fa49 (diff)
downloadvimium-8179e6da52f516b528ba000f1a038a59f86d37a6.tar.bz2
raise regex threshold to query length 15
-rw-r--r--lib/completion.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/completion.js b/lib/completion.js
index 077dcc80..697ee831 100644
--- a/lib/completion.js
+++ b/lib/completion.js
@@ -35,7 +35,7 @@ var completion = (function() {
query = self.normalize(query);
if (query.length == 0)
return str.length ? [str] : [];
- if (query.length > 10) {
+ if (query.length > 15) {
// for long query strings, the method is much too inefficient, so fall
// back to the more inaccurate regex matching
return self.getMatcher(query).exec(str).slice(1);