mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Missed a couple of cases in SES.
This commit is contained in:
parent
eda4ece5a8
commit
d74e4fb231
@ -58,12 +58,12 @@ public func SES<Term, A>(a: [Term], _ b: [Term], recur: (Term, Term) -> Free<A,
|
||||
|
||||
// right extent of the edit graph; can only move down
|
||||
if let down = down {
|
||||
return cons(Diff.Pure(Patch.Insert(b[j])), rest: down)
|
||||
return cons(Diff.Insert(b[j]), rest: down)
|
||||
}
|
||||
|
||||
// bottom extent of the edit graph; can only move right
|
||||
if let right = right {
|
||||
return cons(Diff.Pure(Patch.Delete(a[i])), rest: right)
|
||||
return cons(Diff.Delete(a[i]), rest: right)
|
||||
}
|
||||
|
||||
// bottom-right corner of the edit graph
|
||||
|
Loading…
Reference in New Issue
Block a user