diff --git a/differ.go b/differ.go index 870b6c2..a723180 100644 --- a/differ.go +++ b/differ.go @@ -197,6 +197,7 @@ func (d *Differ) rationalize(ptr pointer, src, tgt interface{}, lastOpIdx int, d replaceOp := Operation{ Type: OperationReplace, Path: ptr.string(), // shallow copy + OldValue: src, Value: tgt, valueLen: len(doc), }