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 incorrect column number when using byte indexes #113

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

Zollerboy1
Copy link
Contributor

When using byte indices (config.with_index_type(IndexType::Byte)), the column number of locations after a multi-byte character are printed incorrectly. This PR should fix that by getting the column number like it is retrieved for labels.

Copy link
Owner

@zesterer zesterer left a comment

Choose a reason for hiding this comment

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

Thanks!

@zesterer zesterer merged commit 66409d3 into zesterer:main Apr 25, 2024
3 checks passed
@VonTum
Copy link
Contributor

VonTum commented Apr 25, 2024

Huh, doesn't get_offset_line already take care of correct column numbers?

@VonTum
Copy link
Contributor

VonTum commented Apr 25, 2024

Aah I see now, the main error location didn't yet get converted. I was only looking at the labels. Good catch!

@Zollerboy1 Zollerboy1 deleted the byte-column branch April 25, 2024 21:05
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.

3 participants