Skip to content

Commit

Permalink
fix: rare bug with not added fold
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Dec 29, 2024
1 parent 64ffbc1 commit 0ba7278
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions diff0/twoway.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ class DiffView {
var f1 = this.orig.session.addFold(sep, new Range(s, 0, s + l, Number.MAX_VALUE));
s = prev.new.end.row + 2;
var f2 = this.edit.session.addFold(sep, new Range(s, 0, s + l, Number.MAX_VALUE));
f1.other = f2;
f2.other = f1;
if (f2 && f1) {
f1.other = f2;
f2.other = f1;
}
}

prev = current;
Expand Down

0 comments on commit 0ba7278

Please sign in to comment.