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 virtual col for multibyte JK motion when g:EasyMotion_startofline=0 #355

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

Conversation

SolaWing
Copy link

Currently, when do jk motion at multibyte line, the col is incorrect. like following img
2017-11-19 11 01 18

the virtcol('.') is also slightly incorrect for returning the last column when char occupying multi column.

after searching in vim's function, I found getcurpos returns curswant, which is the perfect choice .

The "curswant" number is the preferred column when moving the
cursor vertically.

2017-11-19 11 00 28

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.

None yet

1 participant