mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 06:57:59 +01:00
More bootstrap work.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -530,9 +530,9 @@ const CompletionContext = Class("CompletionContext", {
|
||||
// of the given string which also matches the current
|
||||
// item's text.
|
||||
let len = substring.length;
|
||||
let i = 0, m, n = len;
|
||||
let i = 0, n = len;
|
||||
while (n) {
|
||||
m = Math.floor(n / 2);
|
||||
let m = Math.floor(n / 2);
|
||||
let keep = compare(fixCase(item.text), substring.substring(0, i + m));
|
||||
if (!keep)
|
||||
len = i + m - 1;
|
||||
|
||||
Reference in New Issue
Block a user