# editor: Skip \`stop_at_indent\` for single-line editors \(\#50681\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4842e095d968dfee9b9837d3ef1626532263af33

Requested commit: 4842e095d968dfee9b9837d3ef1626532263af33

Commit: 4842e095d968dfee9b9837d3ef1626532263af33

Tree: 5259854f10aac939fe0687958e5db806e43ac9d0

Author: Viraj Bhartiya

Committer: GitHub

## Message

```
editor: Skip `stop_at_indent` for single-line editors (#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 #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.
```

## Parents

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

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