-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
column number and Unicode characters #6161
Comments
It is intentional, since Moving to As far as I can tell, there is no function to get the character position in a line, as opposed to the byte or the visible column it might occupy. |
see #68 (comment)
It was added a few months ago in Vim (and merged to Nvim), see |
@justinmk what about the behavior of |
Seems weird, but as long as it's consistent it doesn't matter, right? It's funny that |
Where
|
is the cursor position, I gotcol(.)
== 4I know that the first character "你".encode('utf-8') is b'\xe4\xbd\xa0' , has a length of 3, which is why the next character
好
gets thecol(.)
as 4But from the user's perspective, the
col(.)
should be 2 forh
orl
motion keys.Is this intentional? Things get tricky for completion plugin when Unicode character is present.
The text was updated successfully, but these errors were encountered: