# Fix panic or bad hunks when expanding hunks w/ multiple ranges in 1 hunk \(\#28117\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 156dd32a35f3aac84b94bc467101538586c1a687

Requested commit: 156dd32a35f3aac84b94bc467101538586c1a687

Commit: 156dd32a35f3aac84b94bc467101538586c1a687

Tree: 9ed74919b07ad9959885d90cbc920317f68838fb

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix panic or bad hunks when expanding hunks w/ multiple ranges in 1 hunk (#28117)

Release Notes:

- Fixed a crash that could happen when expanding diff hunks with
multiple cursors in one hunk.
```

## Parents

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

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