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

Duplicate Line along with Multi-Cursor Selection places the cursors in the wrong column #2612

Open
cixtor opened this Issue Feb 4, 2019 · 2 comments

Comments

5 participants
@cixtor
Copy link

cixtor commented Feb 4, 2019

Description

The “Duplicate Line” function places the cursor in the wrong column with a multi-line selection.

Steps to reproduce

  1. From the menu choose “File > New File”
  2. Type “lorem ipsum dolor”
  3. Hit “Cmd + Shift + D” four times to duplicate the line
  4. “Arrow Left” six times to place the cursor at then end of “ipsum”
  5. “Ctrl + Shift + Arrow Up” four times to create multiple selections
  6. “Cmd + D” to select all the “ipsum” words
  7. “Cmd + Shift + D” to duplicate the word “ipsum”
  8. Each line now has “lorem ipsumipsum dolor”
  9. “Arrow Right” to cancel the word selection
  10. Notice the position of the multiple cursors

duplicate

Expected behavior

After step ten (10) above, the multiple cursors should be in these columns:

Line 1, Column 17
Line 2, Column 17
Line 3, Column 17
Line 4, Column 17
Line 4, Column 17

Actual behavior

After step ten (1) above, the multiple cursors are placed in these columns:

Line 1, Column 17
Line 2, Column 12
Line 3, Column 7
Line 4, Column 2
Line 4, Column 20

Environment

  • Build: 3189
  • Operating system and version: macOS 10.14.3

@cixtor cixtor changed the title Duplicate Duplicate Line along with Multi-Cursor Selection places the cursors in the wrong column Feb 4, 2019

@dpjohnst

This comment has been minimized.

Copy link

dpjohnst commented Feb 5, 2019

Hi @cixtor,

Thanks for using Sublime Text!

I've been able to reproduce this issue, and a fix is on its way - stay tuned.

Kind regards,
- Dylan Johnston
Software Engineer, Sublime HQ

@wbond wbond added this to the Build 3190 milestone Feb 5, 2019

@deathaxe

This comment has been minimized.

Copy link

deathaxe commented Feb 7, 2019

There are a couple more (and older) issues related with the multi-cursor feature, which might impact many users, like #1558 and related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment