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

Don’t use the delta at all.

This commit is contained in:
Rob Rix 2017-03-10 14:18:47 -05:00
parent 438dc91672
commit b81db68867

View File

@ -141,9 +141,9 @@ 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 + k, x')])
return (Endpoint x' y')
where at v k = let x = v ! maxD + delta + k in Endpoint x (x - k)
where at v k = let x = v ! maxD + k in Endpoint x (x - k)
where (!) = (Vector.!)
EditGraph as bs = editGraph myers