Skip to content

helix: Fix line select with empty first line#48026

Merged
kubkon merged 3 commits intozed-industries:mainfrom
jrobsonchase:fix-helix-select-with-empty
Feb 5, 2026
Merged

helix: Fix line select with empty first line#48026
kubkon merged 3 commits intozed-industries:mainfrom
jrobsonchase:fix-helix-select-with-empty

Conversation

@jrobsonchase
Copy link
Contributor

@jrobsonchase jrobsonchase commented Jan 30, 2026

Fixes HelixSelectLine with a pre-existing selection with an empty first line.

An extra line is only needed if the selection is empty, so make that part of the condition.

Also added a test which fails before the fix to validate.

Closes #48023

Release Notes:

  • Fixed HelixSelectLine with an empty first line and a pre-existing selection.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 30, 2026
@jrobsonchase jrobsonchase force-pushed the fix-helix-select-with-empty branch from c7ff962 to 7d05b4f Compare January 30, 2026 15:01
Co-authored-by: Lena Falk <lena@zed.dev>
@kubkon kubkon merged commit c47430d into zed-industries:main Feb 5, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helix: SelectLine is doubled when first line of an existing selection is empty

2 participants