Issue when passing in an IDiffer to SideBySideDiffBuilder
tolanj opened this issue · 0 comments
tolanj commented
When using the overload to pass in an IDiffer to the SideBySide model ALL SubPieces appear on all changes. Cause appears to be:
public static SideBySideDiffModel Diff(IDiffer differ, string oldText, string newText, bool ignoreWhiteSpace = true, bool ignoreCase = false, IChunker lineChunker = null, IChunker wordChunker = null)
has lamda (ot, nt, op, np) =>
{
var r = differ.CreateDiffs(oldText, newText, false, false, wordChunker ?? WordChunker.Instance);
BuildDiffPieces(r, op, np, null);
}
Should be CreateDiffs(ot, nt ......