diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-26 14:11:57 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-26 14:12:09 -0400 |
| commit | 008894473a5d2177e5683719b718e0acefd515bc (patch) | |
| tree | a5dca697cd2d4517a3e74cd653f73a56871d25d4 /docs | |
| parent | 97cbdc67fe6a9652c42daefadd658cc41c1e5ae3 (diff) | |
Fix wrong formatting in some cases of errors on multiple lines
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index c21d800c..9862a1f4 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -474,7 +474,7 @@ let fmtErr = e => { let to=i=>s.slice(0,i).join('').split('\n').map(l=>Array.from(l)); let ll=to(i), l=ll.length-1, j=ll[l].length, m=to()[l]; let k=1,o=i-j,cl=j; while (k<n&&(cl=is[k]-o)<m.length) k++; - let ol=k<n; if (pair) { if (k%2) cl=m.length; else { k--; cl++; } } + let ol=k<n; if (pair) { if (k%2) cl=m.length; else { cl=is[--k]-o+1; } } let c=Array(cl).fill(0); c[j]=1; for (let h=1;h<k;h++) c[is[h]-o+(pair?h%2:0)]=1; if (pair) for (let h=1;h<cl;h++) c[h]^=c[h-1]; |
