# markdown: Don't adjust indentation when inserting with multiple cursors \(\#40794\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9ae77ec3c9fb0c8d5fe85f370432487f5b8b22d6

Requested commit: 9ae77ec3c9fb0c8d5fe85f370432487f5b8b22d6

Commit: 9ae77ec3c9fb0c8d5fe85f370432487f5b8b22d6

Tree: 4d5bd21e68239f8fb81fdf94a74cf53dcb823acb

Author: vipex

Committer: GitHub

## Message

```
markdown: Don't adjust indentation when inserting with multiple cursors (#40794)

Closes #40757

## Summary

This PR addresses an issue where Zed incorrectly adjusts the indentation
of Markdown lists when inserting text using multiple cursors. Currently:

- Editing individual lines with a single cursor behaves correctly (no
unwanted indentation changes).
- Using multiple cursors, Zed automatically adjusts the indentation,
unlike VS Code, which preserves the existing formatting.

## Tasks
- [x] Implement a new test to verify correct Markdown indentation
behavior with multiple cursors.
- [x] Apply the fix to prevent Zed from adjusting indentation when
inserting text on multiple cursors.

------------------------

Release Notes:

- Fixed an issue where inserting text with multiple cursors inside a
nested Markdown list would cause it to lose its indentation.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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