Skip to content

Fix cursor position following multibyte characters#428

Open
natebosch wants to merge 3 commits into
masterfrom
multibyte-position
Open

Fix cursor position following multibyte characters#428
natebosch wants to merge 3 commits into
masterfrom
multibyte-position

Conversation

@natebosch

Copy link
Copy Markdown
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