vipex and Smit Barmase
9ae77ec3c9
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 >
2025-12-05 00:18:06 +05:30
..
2025-12-03 11:24:08 +00:00
2025-11-26 18:03:42 +01:00
2025-11-25 17:13:16 +01:00
2025-11-24 13:34:04 +01:00
2025-12-03 20:32:25 +00:00
2025-12-03 11:24:08 +00:00
2025-11-10 11:11:24 -03:00
2025-12-04 03:55:04 +05:30
2025-10-20 08:35:28 -03:00
2025-11-24 20:01:43 +00:00
2025-11-28 08:18:19 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-01 12:57:51 +00:00
2025-12-01 18:55:33 +01:00
2025-11-07 22:27:14 +00:00
2025-11-27 14:08:43 +00:00
2025-11-11 12:55:19 +00:00
2025-11-27 13:46:43 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 12:14:31 +01:00
2025-11-20 12:18:50 +01:00
2025-12-01 22:36:30 -05:00
2025-12-02 16:27:36 +00:00
2025-11-24 13:34:04 +01:00
2025-11-24 15:46:13 -06:00
2025-12-04 14:42:26 +00:00
2025-11-06 09:16:45 +00:00
2025-11-10 23:00:55 -07:00
2025-10-17 18:58:14 +00:00
2025-12-02 13:22:16 -03:00
2025-11-24 22:17:48 -08:00
2025-11-21 16:39:08 +00:00
2025-12-04 13:25:30 -05:00
2025-12-02 16:27:36 +00:00
2025-10-17 18:58:14 +00:00
2025-11-28 14:16:44 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-18 16:39:08 +00:00
2025-11-25 12:15:55 -05:00
2025-12-02 16:15:18 -05:00
2025-10-17 18:58:14 +00:00
2025-11-19 12:34:41 +01:00
2025-12-01 10:50:28 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 03:55:04 +05:30
2025-12-04 03:55:04 +05:30
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-30 22:45:01 -05:00
2025-10-23 14:13:35 -04:00
2025-11-21 16:39:08 +00:00
2025-12-01 14:36:49 -05:00
2025-12-01 18:55:33 +01:00
2025-12-05 00:18:06 +05:30
2025-12-03 11:24:08 +00:00
2025-12-03 20:32:25 +00:00
2025-10-17 18:58:14 +00:00
2025-11-24 13:34:04 +01:00
2025-12-02 22:26:40 +00:00
2025-10-31 21:18:22 +00:00
2025-12-02 22:26:40 +00:00
2025-12-03 21:34:01 +02:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-26 16:56:34 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 14:23:36 +01:00
2025-10-20 10:30:06 +00:00
2025-11-20 22:17:50 -07:00
2025-11-26 16:56:34 +00:00
2025-12-04 13:25:30 -05:00
2025-12-03 19:33:40 +00:00
2025-12-04 13:44:48 -03:00
2025-11-19 22:00:58 +00:00
2025-11-28 15:48:33 -05:00
2025-12-04 11:26:17 -03:00
2025-11-17 12:31:00 +00:00
2025-10-26 13:24:26 +00:00
2025-10-17 18:58:14 +00:00
2025-12-03 20:32:25 +00:00
2025-10-17 18:58:14 +00:00
2025-12-02 20:38:18 +00:00
2025-11-07 22:27:14 +00:00
2025-12-02 21:33:41 +00:00
2025-10-17 18:58:14 +00:00
2025-11-19 22:00:58 +00:00
2025-11-11 15:43:25 +02:00
2025-12-02 21:33:41 +00:00
2025-12-03 20:47:43 +02:00
2025-11-28 19:40:23 +05:30
2025-12-03 20:32:25 +00:00
2025-12-04 12:14:31 +01:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-12-04 03:55:04 +05:30
2025-12-05 00:18:06 +05:30
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-12-02 16:27:36 +00:00
2025-10-17 18:58:14 +00:00
2025-12-02 14:04:28 +02:00
2025-12-03 16:58:51 +01:00
2025-12-03 16:49:40 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-03 21:56:39 +00:00
2025-11-26 18:03:42 +01:00
2025-10-17 18:58:14 +00:00
2025-12-04 15:41:48 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-24 11:08:45 -08:00
2025-10-20 17:20:09 +00:00
2025-11-11 16:10:47 +01:00
2025-12-01 20:52:57 -07:00
2025-11-25 14:17:27 -08:00
2025-11-24 13:24:26 -05:00
2025-11-19 22:00:58 +00:00
2025-11-26 18:03:42 +01:00
2025-10-17 18:58:14 +00:00
2025-11-12 15:31:20 +01:00
2025-11-26 18:03:42 +01:00
2025-12-04 12:07:40 +00:00
2025-12-04 13:25:30 -05:00
2025-11-13 14:56:40 +01:00
2025-12-03 21:56:39 +00:00
2025-12-03 21:56:39 +00:00
2025-10-29 16:27:30 +00:00
2025-12-04 13:25:30 -05:00
2025-11-26 18:03:42 +01:00
2025-10-17 18:58:14 +00:00
2025-11-27 13:46:43 +00:00
2025-12-04 14:42:26 +00:00
2025-12-04 14:42:26 +00:00
2025-12-01 18:55:33 +01:00
2025-11-18 01:00:26 +00:00
2025-11-03 19:25:15 +00:00
2025-12-01 18:04:01 +00:00
2025-12-04 14:42:26 +00:00
2025-12-01 18:55:33 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 03:55:04 +05:30
2025-12-01 09:12:31 +01:00
2025-12-04 12:14:31 +01:00
2025-10-27 10:13:26 -04:00
2025-11-21 08:28:17 -07:00
2025-11-07 22:27:14 +00:00
2025-12-03 21:56:39 +00:00
2025-10-17 18:58:14 +00:00
2025-11-11 16:34:25 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-20 01:52:13 -03:00
2025-11-03 19:25:15 +00:00
2025-12-01 14:57:15 +01:00
2025-11-21 16:39:08 +00:00
2025-10-17 18:58:14 +00:00
2025-11-20 12:18:50 +01:00
2025-11-24 13:34:04 +01:00
2025-12-03 22:49:44 +00:00
2025-11-20 10:12:59 -05:00
2025-12-01 18:55:33 +01:00
2025-11-07 11:36:05 +00:00
2025-11-24 13:34:04 +01:00
2025-12-02 08:21:18 +00:00
2025-12-04 03:55:04 +05:30
2025-12-01 18:04:01 +00:00
2025-12-04 03:55:04 +05:30
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-01 20:52:57 -07:00
2025-10-17 18:58:14 +00:00
2025-11-14 22:46:35 +00:00
2025-12-04 12:33:13 +00:00
2025-12-01 20:56:34 +00:00
2025-11-22 23:28:34 -03:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-01 12:57:51 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 03:55:04 +05:30
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 12:33:13 +00:00
2025-12-04 18:14:10 +01:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-12-04 12:38:10 +02:00
2025-12-04 14:23:36 +01:00
2025-10-17 18:58:14 +00:00
2025-12-03 14:26:40 +00:00
2025-12-01 18:55:33 +01:00
2025-12-01 14:01:50 +00:00
2025-12-01 14:57:15 +01:00
2025-11-07 22:27:14 +00:00