Editing functionality for matching diffs