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

Line selection gets a link with +1 lines included #12

Open
AArnott opened this issue Sep 2, 2021 · 1 comment
Open

Line selection gets a link with +1 lines included #12

AArnott opened this issue Sep 2, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AArnott
Copy link

AArnott commented Sep 2, 2021

When I select an entire line (by clicking in the left margin of the editor) and copy git link, I get a link that includes the line after the selection. Can that be omitted?

@veler
Copy link
Owner

veler commented Sep 2, 2021

Thanks @AArnott !

Note to myself: this happen because the selection ends on the next line. See the caret position here:

image

This could be fixed by checking if the selection span in the last selected line is empty.

@veler veler self-assigned this Sep 2, 2021
@veler veler added the enhancement New feature or request label Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants