# vim: Fix Helix jump on selected lines \(\#57565\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 158fcac15e00a132f332b733e7e76020e9afee9a

Requested commit: 158fcac15e00a132f332b733e7e76020e9afee9a

Commit: 158fcac15e00a132f332b733e7e76020e9afee9a

Tree: 1f1e586f1a5e6767e3a6d5da5dc1da502ab163c7

Author: liam

Committer: GitHub

## Message

```
vim: Fix Helix jump on selected lines (#57565)

Resolves https://github.com/zed-industries/zed/issues/57486

This diff fixes `g w` after selecting lines with `x` in Helix mode. `x`
leaves Zed in Helix normal mode with a non-empty selection, but jump
target collection treated non-visual selections as ranges to skip. As a
result, words on the selected line did not receive jump labels.

With this change, Helix normal mode keeps existing selection ranges
eligible for jump targets, matching Helix's behavior where normal mode
can still carry selections. The regression covers `x` followed by `g w`
targeting a word inside the selected line.

Release Notes:

- Fixed `g w` not targeting words on lines selected with `x` in Helix
mode.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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