Skip to content

editor: Skip stop_at_indent for single-line editors#50681

Merged
SomeoneToIgnore merged 2 commits intozed-industries:mainfrom
virajbhartiya:fix/find-bar-move-to-beginning-of-line
Mar 12, 2026
Merged

editor: Skip stop_at_indent for single-line editors#50681
SomeoneToIgnore merged 2 commits intozed-industries:mainfrom
virajbhartiya:fix/find-bar-move-to-beginning-of-line

Conversation

@virajbhartiya
Copy link
Copy Markdown
Contributor

In single-line editors like the Find bar, MoveToBeginningOfLine with stop_at_indent should go directly to column 0 instead of stopping at the indentation level.

Closes #50634

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Fixed MoveToBeginningOfLine stopping at indentation in single-line editors like the Find bar instead of moving to column 0.

In single-line editors like the Find bar, MoveToBeginningOfLine with
stop_at_indent should go directly to column 0 instead of stopping at
the indentation level.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 4, 2026
@MrSubidubi MrSubidubi changed the title editor: Skip stop_at_indent for single-line editors editor: Skip stop_at_indent for single-line editors Mar 4, 2026
@virajbhartiya
Copy link
Copy Markdown
Contributor Author

@MrSubidubi I've fixed the styling issue, CI should pass now

@SomeoneToIgnore SomeoneToIgnore self-assigned this Mar 12, 2026
Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

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

Nice, thank you.

@SomeoneToIgnore SomeoneToIgnore merged commit 4842e09 into zed-industries:main Mar 12, 2026
28 checks passed
tommyming pushed a commit to tommyming/zed that referenced this pull request Mar 13, 2026
…#50681)

In single-line editors like the Find bar, MoveToBeginningOfLine with
stop_at_indent should go directly to column 0 instead of stopping at the
indentation level.

Closes zed-industries#50634

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zedindustries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed `MoveToBeginningOfLine` stopping at indentation in single-line
editors like the Find bar instead of moving to column 0.
@zelenenka zelenenka added the guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions label Mar 16, 2026
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 guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

editor::MoveToBeginningOfLine breaks in Find bar on multiline searches

3 participants