1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Offset given the delta.

This commit is contained in:
Rob Rix 2017-03-10 13:57:41 -05:00
parent 7231c64bdd
commit d419e9aa9a

View File

@ -136,7 +136,7 @@ decompose myers = let ?callStack = popCallStack callStack in case myers of
then next
else let x' = succ (x prev) in Endpoint x' (x' - k)
let Endpoint x' y' = slide (negate 1) eq xy
setBackward (v Vector.// [(maxD + delta + k, x')])
setBackward (v Vector.// [(maxD - delta + k, x')])
return (Endpoint x' y')
where at v k = let x = v ! maxD + delta + k in Endpoint x (x - k)