FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix virtual col for multibyte JK motion when g:EasyMotion_startofline=0 by SolaWing · Pull Request #355 · easymotion/vim-easymotion · GitHub

fix virtual col for multibyte JK motion when g:EasyMotion_startofline=0 - #355

Open
SolaWing wants to merge 1 commit into
easymotion:masterfrom
SolaWing:master
Open

fix virtual col for multibyte JK motion when g:EasyMotion_startofline=0#355
SolaWing wants to merge 1 commit into
easymotion:masterfrom
SolaWing:master

Conversation

Copy link
Copy Markdown

Currently, when do jk motion at multibyte line, the col is incorrect. like following img

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL