# Make cursor move to duplicated line when duplicating line up \(\#41004\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 79eff1fe05b9c2ea6072eb04d24b6ea437d156ba

Requested commit: 79eff1fe05b9c2ea6072eb04d24b6ea437d156ba

Commit: 79eff1fe05b9c2ea6072eb04d24b6ea437d156ba

Tree: 1087d40a8c69df263055fb87b6f9b56aa91ddb03

Author: Tom Planche

Committer: GitHub

## Message

```
Make cursor move to duplicated line when duplicating line up (#41004)

![Screen Recording 2025-10-23 at 14 50
26](https://github.com/user-attachments/assets/3427aa06-faf4-4f76-a604-bfc5af30f8ce)

Closes #40919
Follow-up of #39610

Release Notes:
- When duplicating line up, fixed cursor to move to the duplicated line
```

## Parents

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

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