Skip to content

editor: Fix forward word movement over inline folds in agent panel#53979

Merged
NeelChotai merged 1 commit intomainfrom
neel/fix-forward-movement-editor
Apr 16, 2026
Merged

editor: Fix forward word movement over inline folds in agent panel#53979
NeelChotai merged 1 commit intomainfrom
neel/fix-forward-movement-editor

Conversation

@NeelChotai
Copy link
Copy Markdown
Member

Changed the offset-to-display-point conversion in find_boundary_point and find_boundary_trail to use Bias::Right, so positions inside folds map to the fold end, letting the cursor skip past folded ranges.

Closes #53978.

Release Notes:

  • Fixed Ctrl+Right and related word movement shortcuts failing to skip over folded ranges and @mention chips
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 15, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Apr 15, 2026
@NeelChotai NeelChotai merged commit 49d3570 into main Apr 16, 2026
42 checks passed
@NeelChotai NeelChotai deleted the neel/fix-forward-movement-editor branch April 16, 2026 10:25
@eholk eholk mentioned this pull request Apr 16, 2026
18 tasks
eholk pushed a commit that referenced this pull request Apr 16, 2026
…53979)

Changed the offset-to-display-point conversion in `find_boundary_point`
and `find_boundary_trail` to use `Bias::Right`, so positions inside
folds map to the fold end, letting the cursor skip past folded ranges.

Closes #53978.

Release Notes:

- Fixed Ctrl+Right and related word movement shortcuts failing to skip
over folded ranges and `@mention` chips
eholk added a commit that referenced this pull request Apr 16, 2026
We're doing another preview release today to get our latest parallel
agents features out there. This PR is a rollup of all the changes we
need to cherry pick.

- [x] 7a26e48 from
#54081
- [x] #54066
- [x] #53992
- [x] #54079
- [x] #54057
- [x] #54056
- [x] #54052
- [x] #53999
- [x] #54009
- [x] #53539 (already cherry
picked as 25e02cb)
- [x] #54070
- [x] #54053
- fix `run_tests.yml`: 67e92b5
- [x] #53979
- [x] #53884
- [x] #54067
- [x] #54014 (already on
branch)
- [x] #54030 (already on
branch)
- [x] #54094

Release Notes:

- N/A

---------

Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Co-authored-by: Neel <neel@zed.dev>
Co-authored-by: Richard Feldman <richard@zed.dev>
G36maid pushed a commit to G36maid/zed that referenced this pull request Apr 29, 2026
…ed-industries#53979)

Changed the offset-to-display-point conversion in `find_boundary_point`
and `find_boundary_trail` to use `Bias::Right`, so positions inside
folds map to the fold end, letting the cursor skip past folded ranges.

Closes zed-industries#53978.

Release Notes:

- Fixed Ctrl+Right and related word movement shortcuts failing to skip
over folded ranges and `@mention` chips
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 staff Pull requests authored by a current member of Zed staff

2 participants