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 cursor position following multibyte characters #428

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

natebosch
Copy link
Owner

Closes #427

Use charcol over col where it exists.
Gate the function definition behind the feature check to avoid repeating
it for every call.

Closes #427

Use `charcol` over `col` where it exists.
Gate the function definition behind the feature check to avoid repeating
it for every call.
Use a single utility that wraps charcol when possible, and falls back on
col otherwise. Older vim without charcol will not handle multibyte
characters for now. Continue to use `col` for the tag stack, and
`virtcol` for setting character position. In places where the column is
used to index into a string value, prefer `charcol` when available.
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.

Completion breaks with multibyte characters
1 participant