# Keep cursor at top when diff view is first opened \(\#25682\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc3b5c729e71ddd697ca7cf93e5e46e00885e1b6

Requested commit: cc3b5c729e71ddd697ca7cf93e5e46e00885e1b6

Commit: cc3b5c729e71ddd697ca7cf93e5e46e00885e1b6

Tree: 57dbc84382cbe79231a91e6422969dc4a5141470

Author: João Marcos

Committer: GitHub

## Message

```
Keep cursor at top when diff view is first opened (#25682)

Previously, we had the cursor at the bottom while the scroll stayed at
the top.

Now, if you run `git: diff`, the cursor will also be at the top.

The cursor moving to the end was possibly a side-effect of using
`Bias::Right` for selections.

---

Release Notes:

- N/A

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
```

## Parents

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

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