editor: Don't merge adjacent selections#44811
Conversation
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
|
The test now fails because it seems we have differing behavior here. cx.assert_editor_state(indoc! {"
fn a() {
// «b();
- // c();
- ˇ»// d();
+ ˇ»// «c();
+ ˇ» // d();
}
"});Note how we now end up with two selections after invoking |
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
|
@Veykril Thanks so much for this - that helped it click for me. I was counting the markers as columns, but they disappear in the final marked text. Rookie mistake 😄 |
Closes zed-industries#24748 Release Notes: - Adjacent selections are not merged anymore --------- Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com> Signed-off-by: Marco Mihai Condrache
|
@marcocondrache, I'll make an issue for this later, but figured I'd bring it up here first. I'm assuming a separate issue, but once you start typing, things gets merged. Screen.Recording.2025-12-16.at.2.07.52.PM.mov |
|
@JosephTLyons wow, thank you for discovering this. Could you assign the issue to me? I will provide a fix immediately |
Thank you so much! Here's the issue. I'm weirdly not able to assign it currently, I think we might have some permission issues going on since we migrated over to an GH organization. Maybe if you comment on the issue, I can assign. |

Closes #24748
Release Notes: