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: correctly calculate unicode line length #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Maneren
Copy link

@Maneren Maneren commented Feb 27, 2025

Implements fix described in #226

Also in 0.11, vim.str_byteindex's API was changed to clarify utf-X handling, so I added that version as well behind a has_version guard.

As stated in the issue, I am convinced that this is correct, since I haven't encountered any problems while running this fix daily for the last 2 months. However, I am not sure if/how to write tests for this behavior.

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.

1 participant