# Fix crash when staging a hunk that overlaps multiple unstaged hunks \(\#27545\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e635798fe0827c08929a3610aee2d73e2ff2faa7

Requested commit: e635798fe0827c08929a3610aee2d73e2ff2faa7

Commit: e635798fe0827c08929a3610aee2d73e2ff2faa7

Tree: 12dbb28e65369603edabf1be42daa8c4a6d33ce6

Author: João Marcos

Committer: GitHub

## Message

```
Fix crash when staging a hunk that overlaps multiple unstaged hunks (#27545)

Release Notes:

- Git: Fix crash when staging a hunk that overlaps multiple unstaged
hunks.

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
```

## Parents

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

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