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

Relative range selection query #6

Open
benfrain opened this issue Jun 30, 2021 · 2 comments
Open

Relative range selection query #6

benfrain opened this issue Jun 30, 2021 · 2 comments

Comments

@benfrain
Copy link

Using a range selection like :-15,-10 I expected to have the lines starting 15 lines above my cursor, to 10 lines above my cursor highlighted.

However, I actually get the line 15 above, plus another 10 behind that; as if it's doing the sum -15 - -10 so I get 10 lines instead of 5.

Is that the expected behaviour?

@winston0410
Copy link
Owner

Hi thank you for reporting. This is a bug I suppose, and I think it is the reverse range logic messing up there.

@winston0410
Copy link
Owner

@benfrain It seems like the bug would occurs whenever the relative range are both negative. Good catch and I will try to fix it when I have time.

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

2 participants