Skip to content

vim: Fix Helix jump on selected lines#57565

Merged
smitbarmase merged 2 commits into
zed-industries:mainfrom
terror:helix-jump-selected-lines
May 26, 2026
Merged

vim: Fix Helix jump on selected lines#57565
smitbarmase merged 2 commits into
zed-industries:mainfrom
terror:helix-jump-selected-lines

Conversation

@terror

@terror terror commented May 23, 2026

Copy link
Copy Markdown
Contributor

Resolves #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.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 23, 2026
@smitbarmase smitbarmase added the area:parity/helix Feedback for Helix parity features label May 25, 2026

@smitbarmase smitbarmase left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@smitbarmase smitbarmase added this pull request to the merge queue May 26, 2026
Merged via the queue into zed-industries:main with commit 158fcac May 26, 2026
32 checks passed
@smitbarmase smitbarmase self-assigned this May 27, 2026
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
Resolves zed-industries#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:parity/helix Feedback for Helix parity features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helix: g w not working on selected lines

3 participants