aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 11:20:31 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 15:00:17 -0500
commit22dbbd1e651743da8c533f2fb4a92ad681c46f67 (patch)
tree0c62211f6e1ede1fbed8e207054c7f77c00ed03d
parent663d1e0a4c97a0a4e8b0b16a68752f85b2dd924f (diff)
search.js indexed incorrect list
-rw-r--r--tools/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/search.js b/tools/search.js
index c0b9f46..4e2e88f 100644
--- a/tools/search.js
+++ b/tools/search.js
@@ -53,7 +53,7 @@ function Search(searchBlock){ // searchBlock should be a Space object.
let curind = chkind + sgn;
while (sort[curind] && sort[chkind][ind] == sort[curind][ind]){
if (! exclude.has(sort[curind])){
- adjacent.add(...this.block(sort[curind], [curind, bs(sort, sort[curind], getComp(1-ind))], exclude));
+ adjacent.add(...this.block(sort[curind], [curind, bs(this.sort[1-ind], sort[curind], getComp(1-ind))], exclude));
}
curind += sgn;
}