Skip to content

Commit c51fc0a

Browse files
fix?
1 parent 96c2331 commit c51fc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Diff.prototype = {
5555
bestPath[diagonalPath - 1] = undefined;
5656
}
5757

58-
let canAdd = addPath && newPos + 1 < newLen,
58+
let canAdd = addPath && newPos < newLen,
5959
canRemove = removePath && removePath.oldPos + 1 < oldLen;
6060

6161
if (!canAdd && !canRemove) {

0 commit comments

Comments
 (0)