# Fix cursor position when navigating to a multibuffer's first excerpt \(\#25723\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ec3702b4728e2f549986f97f40dce230c768e28

Requested commit: 7ec3702b4728e2f549986f97f40dce230c768e28

Commit: 7ec3702b4728e2f549986f97f40dce230c768e28

Tree: 0098b0567615e2222cee1cec2c7bf73ec65a7566

Author: Cole Miller

Committer: GitHub

## Message

```
Fix cursor position when navigating to a multibuffer's first excerpt (#25723)

This PR fixes an unexpected cursor position when jumping to the
beginning of the project diff editor's first excerpt if that excerpt
starts with a deleted region. Previously, the cursor would end up in the
*following* region in this situation; now it ends up at the start of the
deleted region, as happens already for excerpts that are not the first.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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