-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Labels
community championIssues filed by our amazing community champions! 🫶Issues filed by our amazing community champions! 🫶frequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Description
Reproduction steps
- Use this snippet:
foo bar baz
foo
foo bar
- Put the cursor at the end of line 1
editor::AddSelectionBelowtwice
Current vs. Expected behavior
There should be a cursor at the end of each line.
Instead, once a cursor is added on the shorter line 2, the original cursor offset is forgotten, so you get this:
I think this originally worked in #40190, but I suspect it broke in #45594.
cc @dinocosta
Zed version and system specs
Zed: v0.219.4+stable.119.5595f7ce23d51a58eb66dd025a487bbd6c75dad1 (Zed)
OS: macOS 15.7.3
Memory: 16 GiB
Architecture: x86_64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
community championIssues filed by our amazing community champions! 🫶Issues filed by our amazing community champions! 🫶frequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce