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

make mousedrag selection use character indexing instead of gap indexing #2839

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

k2d222
Copy link
Contributor

@k2d222 k2d222 commented Jun 20, 2022

fixes #2722

The selection when dragging the mouse was using the Range gap indexing, so it was stopping 1 character to the left, whether going right or left of the anchor.

Copy link
Member

@archseer archseer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@archseer archseer merged commit 8c64c3d into helix-editor:master Jun 20, 2022
lazytanuki pushed a commit to lazytanuki/helix that referenced this pull request Jun 21, 2022
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

Successfully merging this pull request may close these issues.

Mouse selection excludes last character
2 participants