# editor: Use inclusive ranges for git diff resolution\. \(\#3999\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 282184a673514c66c274290e2b7f16460a87fc12

Requested commit: 282184a673514c66c274290e2b7f16460a87fc12

Commit: 282184a673514c66c274290e2b7f16460a87fc12

Tree: 67fd9f77b2df92f4b1dbece750b3b6ff9a530a3b

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
editor: Use inclusive ranges for git diff resolution. (#3999)

The culprit was in display map which was resolving next valid point for
the editor, without regard for whether that point belongs to the same excerpt. We now make an end point a minimum of the end point passed in and the start of excerpt header, if there are any. 
This bug existed in Zed1 as well.

Fixes: Diff markers in multibuffer search overlap with dividers between
excepts (shouldn't extend all the way into the divider region)


Release Notes:
- Fixed diff markers being drawn incorrectly near headers in multibuffer
views.
```

## Parents

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

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