# Fix diff_hunk_before in a multibuffer \(\#26059\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d7b90f4204028888aa9da0c1dc2208b5bff7bf18

Requested commit: d7b90f4204028888aa9da0c1dc2208b5bff7bf18

Commit: d7b90f4204028888aa9da0c1dc2208b5bff7bf18

Tree: bfd63e5eb9636a6d375f702ea2558c48fcfa1afd

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix diff_hunk_before in a multibuffer (#26059)

Also simplify it to avoid doing a bunch of unnecessary work.

Co-Authored-By: Cole <cole@zed.dev>

Closes #ISSUE

Release Notes:

- git: Fix jumping to the previous diff hunk

---------

Co-authored-by: Cole <cole@zed.dev>
```

## Parents

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

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