1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 22:02:27 +01:00

Fix Option.validateCompleter

This commit is contained in:
Kris Maglione
2008-12-01 20:51:40 +00:00
parent a2550499c8
commit e7248c8b8b
2 changed files with 4 additions and 3 deletions

View File

@@ -172,11 +172,12 @@ const template = {
let n = 0;
for (let [i, length] in iter)
{
if (n++ > 8)
if (n++ > 50) // Prevent infinite loops.
return s + <>{str.substr(start)}</>;
XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>;
s += highlight(str.substr(i, length));
liberator.dump(s);
start = i + length;
}
return s + <>{str.substr(start)}</>;