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

Breaks when marking a cursor to the beginning and the end of a buffer #1

Open
kankaristo opened this issue Jun 1, 2015 · 0 comments

Comments

@kankaristo
Copy link
Owner

Atom doesn't allow creating a cursor on top of another cursor, so multi-cursor-plus creates the new cursor at the beginning of the file and moves it to the same position as the current cursor.

If there is already a cursor at the beginning of the file, the new cursor is created at the end of the file instead.

If there is a cursor at the beginning and end of the file, creating a new cursor doesn't work correctly.

Every line and column in the buffer could be looped through to find a position without an existing cursor, but this could be horrible for performance (every position needs to be checked against every existing cursor). This might work well enough, but some other solution would probably be better.

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