# Fix two bugs in new diff hunk handling \(\#23990\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b6e54ae2f1f7019434f42caf9c0ce286a604a02c

Requested commit: b6e54ae2f1f7019434f42caf9c0ce286a604a02c

Commit: b6e54ae2f1f7019434f42caf9c0ce286a604a02c

Tree: 57f9a6c57fe62509f18d21c3e15d0a0134c3d313

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix two bugs in new diff hunk handling (#23990)

Closes https://github.com/zed-industries/zed/issues/23981

Release Notes:

- Fixed a crash that could happen when expanding certain diff hunks
- Fixed a bug where diff hunks were not syntax highlighted when
reopening a project with previously-opened buffers.
```

## Parents

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

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