diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-24 17:49:09 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 14:52:44 -0500 |
commit | 8c64dc8d152f2b6248e17e8d3d269aa4237c2f29 (patch) | |
tree | 757521a183703374e7eb345ce40fdb3b5a8c76c3 | |
parent | 0de6b79203844870e56b8d3e4ae56798a9e43dc8 (diff) |
fixed block aggregator to stop infinite loop
-rw-r--r-- | tools/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/search.js b/tools/search.js index 0eebe3b..97341b3 100644 --- a/tools/search.js +++ b/tools/search.js @@ -54,7 +54,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))], adjacent)); + adjacent.add(...this.block(sort[curind], [curind, bs(sort, sort[curind], getComp(1-ind))], exclude)); } curind += sgn; } |