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

[Bug] Plugin breaks vertical cursor movements even when disabled #84

Closed
kira-krul opened this issue Aug 27, 2020 · 3 comments · Fixed by #87
Closed

[Bug] Plugin breaks vertical cursor movements even when disabled #84

kira-krul opened this issue Aug 27, 2020 · 3 comments · Fixed by #87

Comments

@kira-krul
Copy link

Here's a screen recording of the issue:
Screen-Recording-2020-08-27-at-1 (1)

Compare to how it works without the plugin:
Screen-Recording-2020-08-27-at-1

:ContextDisable doesn't fix it

Broken in both vim and neovim

@wellle
Copy link
Owner

wellle commented Aug 27, 2020

Thank you, I can reproduce this behavior, will look into it 👍

@wellle
Copy link
Owner

wellle commented Aug 28, 2020

@Ironimus @yutakatay: Turns out that setting 'virtualedit' temporarily resets the cursor position's curswant property (which column the cursor would like to be on) to the column it's actually on. So the fix #87 was to save and restore the cursor position (even though the cursor itself didn't actually move) in order to retain the curswant property. Please try again, and thanks again for reporting 👍

@yutkat
Copy link

yutkat commented Aug 29, 2020

I've just tried it. It seems to be fixed properly.
Thank you 😄

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 a pull request may close this issue.

3 participants