Fix coalescing of multi-line edits (#46220)

I was seeing some surprising un-coalesced edits in the edit history when
looking at captured examples. I realized that we were only coalescing
based on the *ends* of edit ranges, but I think we want to combine hunks
where there are 8 or less unchanged lines in between changes. This PR
implements that.

Release Notes:

- N/A
67e2a23cbaMax Brunsfeld committed on 1/7/2026, 2:04:43 AM· committed by GitHubparent09ce318
2 files changedLine totals unavailable