-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Join Lines: not multi cursor aware #16587
Comments
@rebornix when I run this action having multiple cursors on a single line, I loose the cursors and get a selection. When I undo and redo, I am not seeing that though: |
Changing multi cursors into one selection is not intentional, it's already fixed. For one single cursor, we move the cursor before the newly added space and next line's trimmed content. For one single selection, we still persist the selection. This is the normal behavior of both Vim and Sublime Text. When we take multi cursor into consideration, if people put multi cursor in one single line, running Join Lines on every cursor leads to the same result, so these cursors merge into a single one. Above the behavior after the fix. However, there are still issues about the undo/redo stack. As we need to modify the cursor position after executing the commands, an undo followed by a redo will generate wrong cursor positions. This happens both here and Delete All Left. @alexandrudima it seems that we are not getting expected cursors while redoing |
|
This issue was already fixed by community. |
Testing: #16545
Steps to Reproduce:
=> only happens for the first cursor
The text was updated successfully, but these errors were encountered: