# Fix coalescing of multi-line edits \(\#46220\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/67e2a23cbada11389659c011cb1da13444b1cd0e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 67e2a23cbada11389659c011cb1da13444b1cd0e

Requested commit: 67e2a23cbada11389659c011cb1da13444b1cd0e

Commit: 67e2a23cbada11389659c011cb1da13444b1cd0e

Tree: 4701a9f93007ee956b87adc67b1fbb1469172cfa

Author: Max Brunsfeld

Committer: GitHub

## Message

```
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
```

## Parents

- [09ce318a78bc3b7ee82461b962cb82f44d860d4d](https://git.cafe/gitcafe/zed/commit/09ce318a78bc3b7ee82461b962cb82f44d860d4d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/67e2a23cbada11389659c011cb1da13444b1cd0e?format=markdown)
