# editor: Fix first \`cmd-left\` target for cursor in leading whitespace \(\#36145\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1d2eaf210a15bc6c67de60696caaf08f4be9c1c6

Requested commit: 1d2eaf210a15bc6c67de60696caaf08f4be9c1c6

Commit: 1d2eaf210a15bc6c67de60696caaf08f4be9c1c6

Tree: 5c9bef724c2b3c1c155c4ab883c5127b1f393de2

Author: smit

Committer: GitHub

## Message

```
editor: Fix first `cmd-left` target for cursor in leading whitespace (#36145)

Closes #35805

If the cursor is between column 0 and the indent size, pressing
`cmd-left` jumps to the indent. Pressing it again moves to the true
column 0. Further presses toggle between indent and column 0.

This PR changes the first `cmd-left` to go to column 0 instead of
indent. Toggling between is unaffected.

Release Notes:

- Fixed issue where pressing `cmd-left` with the cursor in the leading
spaces moved to the start of the text first. It now goes to the
beginning of the line first, then the start of the text.
```

## Parents

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

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