# Fix diff recalculation hang \(\#28377\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 294a1b63c0956843688d4d16cda1e1c2d52f06a9

Requested commit: 294a1b63c0956843688d4d16cda1e1c2d52f06a9

Commit: 294a1b63c0956843688d4d16cda1e1c2d52f06a9

Tree: 58560a7e2aa9cc913eb75a34a8a20bcba0c7046c

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix diff recalculation hang (#28377)

Fixes https://github.com/zed-industries/zed/issues/26039

Release Notes:

- Fixed an issue where diffs stopped updating closing and reopening them
after staging hunks.
- Fixed a bug where staging a hunk while the cursor was in a deleted
line would move the cursor erroneously.

---------

Co-authored-by: Cole Miller <m@cole-miller.net>
Co-authored-by: João Marcos <marcospb19@hotmail.com>
```

## Parents

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

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