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

fix out-of-bounds checking for completions #892

Merged
merged 2 commits into from
Mar 12, 2022

Conversation

baronfel
Copy link
Contributor

Fixes #891 by correcting an off-by-one error when checking bounds for the line. We have a more safe way to get line text from FSC text ranges, so let's use that and sidestep some safety checks as a result (since they're included in the text helper).

@baronfel
Copy link
Contributor Author

Test failure is unrelated to completions, merging.

@baronfel baronfel merged commit 0522557 into ionide:main Mar 12, 2022
@baronfel baronfel deleted the fix-completions-midline branch March 12, 2022 18:54
@baronfel
Copy link
Contributor Author

This should be fixed in 0.50.1, fresh off the presses.

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.

Neovim: Autocompletion not working if not on the start of the line
1 participant