Skip to content
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

If first action is delete, last cursor does double delete. #18

Open
ghost opened this issue Nov 12, 2018 · 1 comment
Open

If first action is delete, last cursor does double delete. #18

ghost opened this issue Nov 12, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 12, 2018

Hey, love the package,

Found an issue with the first action being a delete when the rows are canted.. the last cursor does a double delete on the first del keystroke. Give attached.

This can be prevented from happening if you first press SPACE then do your delete action. So for some reason its only on first action delete. Any other action prior nullifies the issue.

gliienabth

Regards,
Slater

@kankaristo
Copy link
Owner

Are you marking the last cursor?

This is (used to be?) an issue with any action, if you mark the last cursor, instead of just moving the cursor to its final position (no mark command).

The mark command creates a new cursor at the current cursor's position, so there are actually 2 cursors there. When you press Delete, both of those cursors delete a character, and then Atom combines the cursors into one cursor (similar to when you have multiple cursors on the same line and you press Home). The way to avoid this is to not mark the last cursor.

Unfortunately, I haven't used Atom for a few months now (switched to VSCode), so it's unlikely that I'll work on this package anymore...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant