# Fix Helix append escape cursor restore \(\#57736\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 945764f95355a4635e2d0327881ac4586799adc6

Requested commit: 945764f95355a4635e2d0327881ac4586799adc6

Commit: 945764f95355a4635e2d0327881ac4586799adc6

Tree: 1bc162003e924b074681f28b0bdee8bcf4f48073

Author: Jamil Ur Rehman Ahmadzai

Committer: GitHub

## Message

```
Fix Helix append escape cursor restore (#57736)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #54231

Related to the Opire Helix keymap bounty on #4642.
/claim #4642
Opire payout: @jamilahmadzai

Release Notes:

- Fixed Helix mode append so pressing Escape without inserting text
restores the original cursor or selection instead of leaving it one
character ahead.

---------

Co-authored-by: Tom Houlé <tom@tomhoule.com>
```

## Parents

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

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