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(diagnostic): invalid col number compare in next_diagnostic #28397

Merged
merged 1 commit into from Apr 27, 2024

Conversation

glepnir
Copy link
Member

@glepnir glepnir commented Apr 18, 2024

Problem: when line is a blank line there will got an invalid column number in math.min compare.

Solution: make sure the min col number is 0 not an illegal number.

Fix #26079

@glepnir
Copy link
Member Author

glepnir commented Apr 22, 2024

cc @gpanders

Problem: when line is blank link then there will got an invalid column number in math.min compare.

Solution: make sure the min column number is 0 not an illegal number.
@gpanders gpanders merged commit 96f59e1 into neovim:master Apr 27, 2024
29 checks passed
@glepnir glepnir deleted the 26079 branch April 28, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When lsp diagnostics are on wrong line, goto_prev stops working
3 participants