# editor: Make \`SelectNext\` and \`SelectPrevious\` preserve cursor direction \(\#29293\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 636c6e7f2d93b80d3b04985d7767e38f0b158376

Requested commit: 636c6e7f2d93b80d3b04985d7767e38f0b158376

Commit: 636c6e7f2d93b80d3b04985d7767e38f0b158376

Tree: 41996a1c8dc08579b2b07dcd5b7e4c90861f0b8c

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Make `SelectNext` and `SelectPrevious` preserve cursor direction (#29293)

Closes #27652

Now, if the last selection is reversed, subsequent `SelectNext` or
`SelectPrevious` selection will also be reversed.


https://github.com/user-attachments/assets/dff31abf-ac9e-4d35-bd2c-34e7b0f3ca23

Release Notes:

- Fixed an issue where `SelectNext` and `SelectPrevious` did not
preserve the last selection's cursor direction.
```

## Parents

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

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