# editor: Fix inconsistent relative indent when using tab with multi cursors \(\#29519\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 52eef3c35ddfa4c8b104ff00f38e45de7fa4d5d7

Requested commit: 52eef3c35ddfa4c8b104ff00f38e45de7fa4d5d7

Commit: 52eef3c35ddfa4c8b104ff00f38e45de7fa4d5d7

Tree: 8ca5ae2466a5cdde4e48d9fc1098e920ed4b6b91

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix inconsistent relative indent when using tab with multi cursors (#29519)

Do not insert hard/soft tabs for cursors at the suggested indent level
if any other cursor lies before the suggested indent level. This PR
brings us one step closer to fixing
https://github.com/zed-industries/zed/issues/26157.

Before:


https://github.com/user-attachments/assets/8fd5cde4-99f4-4363-9292-5da8dadab658

After:


https://github.com/user-attachments/assets/17c9f8ca-5842-452b-8665-7c7138d50162

Release Notes:

- Fixed an issue where using tab with multiple cursors would result in
inconsistent relative indentation across lines.
```

## Parents

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

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